mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-23 19:19:32 +01:00
Fixed ircdb.py to give full exception traces when unexpected exceptions occur.
This commit is contained in:
parent
f8156cc9cc
commit
5582e69268
@ -772,9 +772,12 @@ class ChannelsDictionary(utils.IterableMap):
|
||||
reader.readFile(filename)
|
||||
self.noFlush = False
|
||||
self.flush()
|
||||
except Exception, e:
|
||||
except EnvironmentError, e:
|
||||
log.error('Invalid channel database, resetting to empty.')
|
||||
log.error('Exact error: %s', utils.exnToString(e))
|
||||
except Exception, e:
|
||||
log.error('Invalid channel database, resetting to empty.')
|
||||
log.exception('Exact error:')
|
||||
finally:
|
||||
self.noFlush = False
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user