mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 05:09:23 +01:00
Fixed our NoSuitableDatabase error message not to log a traceback.
This commit is contained in:
parent
d5a889b54f
commit
08ab492c4a
@ -42,6 +42,7 @@ import supybot.ircdb as ircdb
|
||||
from supybot.commands import *
|
||||
import supybot.irclib as irclib
|
||||
import supybot.plugin as plugin
|
||||
import supybot.plugins as plugins
|
||||
import supybot.drivers as drivers
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
import supybot.ircutils as ircutils
|
||||
@ -229,8 +230,11 @@ class Owner(callbacks.Plugin):
|
||||
except callbacks.Error, e:
|
||||
# This is just an error message.
|
||||
log.warning(str(e))
|
||||
except ImportError, e:
|
||||
log.warning('Failed to load %s: %s.', name, e)
|
||||
except (plugins.NoSuitableDatabase, ImportError), e:
|
||||
s = 'Failed to load %s: %s' % (name, e)
|
||||
if not s.endswith('.'):
|
||||
s += '.'
|
||||
log.warning(s)
|
||||
except Exception, e:
|
||||
log.exception('Failed to load %s:', name)
|
||||
else:
|
||||
|
Loading…
Reference in New Issue
Block a user