mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-10 12:59:22 +01:00
No errors on exit when google.py fails to import.
This commit is contained in:
parent
6b946aad94
commit
d5241eb07a
@ -51,6 +51,7 @@ import supybot.registry as registry
|
||||
|
||||
import supybot.conf as conf
|
||||
import supybot.utils as utils
|
||||
import supybot.world as world
|
||||
from supybot.commands import *
|
||||
import supybot.ircmsgs as ircmsgs
|
||||
import supybot.plugins as plugins
|
||||
@ -141,7 +142,9 @@ class LicenseKey(registry.String):
|
||||
if s:
|
||||
google.setLicense(self.value)
|
||||
except AttributeError:
|
||||
raise callbacks.Error, 'It appears that the initial import of ' \
|
||||
if not world.dying:
|
||||
raise callbacks.Error, \
|
||||
'It appears that the initial import of ' \
|
||||
'our underlying google.py module has ' \
|
||||
'failed. Once the cause of that problem ' \
|
||||
'has been diagnosed and fixed, the bot ' \
|
||||
|
Loading…
Reference in New Issue
Block a user