From 18c671fc6c8d41a8f0795e1e025d5d4bdfa82f35 Mon Sep 17 00:00:00 2001 From: Valentin Lorentz Date: Sat, 1 Jun 2013 16:26:16 +0200 Subject: [PATCH] scripts/supybot: Invoke i18n in the 'try' block to handle the case where the config file does not exist. --- scripts/supybot | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/supybot b/scripts/supybot index 973fe8831..038b41413 100644 --- a/scripts/supybot +++ b/scripts/supybot @@ -184,9 +184,9 @@ if __name__ == '__main__': docs/GETTING_STARTED and follow the instructions.""")) else: registryFilename = args.pop() - i18n.getLocaleFromRegistryFilename(registryFilename) try: # The registry *MUST* be opened before importing log or conf. + i18n.getLocaleFromRegistryFilename(registryFilename) registry.open_registry(registryFilename) shutil.copy(registryFilename, registryFilename + '.bak') except registry.InvalidRegistryFile as e: