diff --git a/src/i18n.py b/src/i18n.py index 1b702035f..59eb45083 100644 --- a/src/i18n.py +++ b/src/i18n.py @@ -57,7 +57,10 @@ def getLocaleFromRegistryCache(): loaded.""" global currentLocale import supybot.registry as registry - currentLocale = registry._cache['supybot.language'] + try: + currentLocale = registry._cache['supybot.language'] + except KeyError: + pass def import_conf(): """Imports the conf into this module"""