mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-26 20:59:27 +01:00
supybot-plugin-create: Only catch ImportError for the i18n fallback.
This commit is contained in:
parent
84cad71cf5
commit
3c7f9d09c5
@ -98,7 +98,7 @@ import supybot.callbacks as callbacks
|
||||
try:
|
||||
from supybot.i18n import PluginInternationalization
|
||||
_ = PluginInternationalization('%s')
|
||||
except:
|
||||
except ImportError:
|
||||
# Placeholder that allows to run the plugin on a bot
|
||||
# without the i18n module
|
||||
_ = lambda x:x
|
||||
|
Loading…
Reference in New Issue
Block a user