mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-14 22:49:23 +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:
|
try:
|
||||||
from supybot.i18n import PluginInternationalization
|
from supybot.i18n import PluginInternationalization
|
||||||
_ = PluginInternationalization('%s')
|
_ = PluginInternationalization('%s')
|
||||||
except:
|
except ImportError:
|
||||||
# Placeholder that allows to run the plugin on a bot
|
# Placeholder that allows to run the plugin on a bot
|
||||||
# without the i18n module
|
# without the i18n module
|
||||||
_ = lambda x:x
|
_ = lambda x:x
|
||||||
|
Loading…
Reference in New Issue
Block a user