mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Check globals() instead of catching NameError.
This commit is contained in:
parent
af460596d3
commit
446349357d
@ -131,9 +131,9 @@ class Schedule(drivers.IrcDriver):
|
||||
except Exception, e:
|
||||
log.exception('Uncaught exception in scheduled function:')
|
||||
|
||||
try:
|
||||
ignore(schedule)
|
||||
except NameError:
|
||||
if 'ignore' in globals():
|
||||
globals()['ignore'](schedule)
|
||||
else:
|
||||
schedule = Schedule()
|
||||
|
||||
addEvent = schedule.addEvent
|
||||
|
@ -1,3 +1,3 @@
|
||||
"""stick the various versioning attributes in here, so we only have to change
|
||||
them once."""
|
||||
version = '0.83.4.1+limnoria (2012-05-02T18:50:06+0000)'
|
||||
version = '0.83.4.1+limnoria (2012-05-02T18:58:36+0000)'
|
||||
|
Loading…
Reference in New Issue
Block a user