supybot-plugin-create: Only catch ImportError for the i18n fallback.

This commit is contained in:
Valentin Lorentz 2013-12-15 20:08:49 +00:00
parent 84cad71cf5
commit 3c7f9d09c5

View File

@ -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