Fixed ircdb.py to give full exception traces when unexpected exceptions occur.

This commit is contained in:
Jeremy Fincher 2005-08-01 21:01:46 +00:00
parent f8156cc9cc
commit 5582e69268

View File

@ -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