Changeset 557:943d93b47c77


Ignore:
Timestamp:
Sep 7, 2013, 8:10:12 PM (7 years ago)
Author:
Stefano Rivera <stefano@…>
Branch:
default
Message:

Ignore the pymunk AssertionError? on level change

File:
1 edited

Legend:

Unmodified
Added
Removed
  • nagslang/screens/base.py

    r276 r557  
    11"""A screen or area in which action happens."""
     2
     3import sys
    24
    35from pygame import event
     
    3032    def tick(self, seconds):
    3133        """Step the given amount of time."""
    32         self.space.step(seconds)
     34        try:
     35            self.space.step(seconds)
     36        except AssertionError:
     37            # TODO: Find the source of these
     38            print >> sys.stderr, (
     39                'Caught a pymunk assertion error. '
     40                "We don't know what causes these on level change. "
     41                "Hopefully we can ignore them...")
Note: See TracChangeset for help on using the changeset viewer.