From 3c7f9d09c5bc0ec91331900e92466a87dedf16bf Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sun, 15 Dec 2013 20:08:49 +0000 Subject: [PATCH] supybot-plugin-create: Only catch ImportError for the i18n fallback. --- scripts/supybot-plugin-create | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/supybot-plugin-create b/scripts/supybot-plugin-create index 42742a975..384aaa5fc 100644 --- a/scripts/supybot-plugin-create +++ b/scripts/supybot-plugin-create @@ -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