mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-27 13:19:24 +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 *
|
from supybot.commands import *
|
||||||
import supybot.irclib as irclib
|
import supybot.irclib as irclib
|
||||||
import supybot.plugin as plugin
|
import supybot.plugin as plugin
|
||||||
|
import supybot.plugins as plugins
|
||||||
import supybot.drivers as drivers
|
import supybot.drivers as drivers
|
||||||
import supybot.ircmsgs as ircmsgs
|
import supybot.ircmsgs as ircmsgs
|
||||||
import supybot.ircutils as ircutils
|
import supybot.ircutils as ircutils
|
||||||
@ -229,8 +230,11 @@ class Owner(callbacks.Plugin):
|
|||||||
except callbacks.Error, e:
|
except callbacks.Error, e:
|
||||||
# This is just an error message.
|
# This is just an error message.
|
||||||
log.warning(str(e))
|
log.warning(str(e))
|
||||||
except ImportError, e:
|
except (plugins.NoSuitableDatabase, ImportError), e:
|
||||||
log.warning('Failed to load %s: %s.', name, e)
|
s = 'Failed to load %s: %s' % (name, e)
|
||||||
|
if not s.endswith('.'):
|
||||||
|
s += '.'
|
||||||
|
log.warning(s)
|
||||||
except Exception, e:
|
except Exception, e:
|
||||||
log.exception('Failed to load %s:', name)
|
log.exception('Failed to load %s:', name)
|
||||||
else:
|
else:
|
||||||
|
Loading…
Reference in New Issue
Block a user