Mercurial > fife-parpg
comparison engine/extensions/pychan/events.py @ 234:e4dfdf4c11fd
Workaround for a crash on Win32 when trying to print an event.
author | cheesesucker@33b003aa-7bff-0310-803a-e67f0ece8222 |
---|---|
date | Mon, 23 Mar 2009 16:54:16 +0000 |
parents | f10a35efebc0 |
children | 92c7ce181881 |
comparison
equal
deleted
inserted
replaced
233:2959ed343fde | 234:e4dfdf4c11fd |
---|---|
133 if self.debug: print "-"*self.indent, name | 133 if self.debug: print "-"*self.indent, name |
134 for f in self.events[name].itervalues(): | 134 for f in self.events[name].itervalues(): |
135 f( event ) | 135 f( event ) |
136 | 136 |
137 except: | 137 except: |
138 print name, event | 138 print name, repr(event) |
139 traceback.print_exc() | 139 traceback.print_exc() |
140 raise | 140 raise |
141 | 141 |
142 finally: | 142 finally: |
143 self.indent -= 4 | 143 self.indent -= 4 |