From e36c007a24aebfe9c25d6421de7c584d920a96c2 Mon Sep 17 00:00:00 2001 From: jesopo Date: Mon, 2 Dec 2019 18:01:03 +0000 Subject: [PATCH] SettingParseException was moved to utils.settings --- modules/config.py | 2 +- modules/ircv3_sasl/__init__.py | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/modules/config.py b/modules/config.py index 48e3eb62..710a5dd6 100644 --- a/modules/config.py +++ b/modules/config.py @@ -119,7 +119,7 @@ class Module(ModuleManager.BaseModule): setting_object = export_settings[setting] try: validated_value = setting_object.parse(value) - except utils.SettingParseException as e: + except utils.settings.SettingParseException as e: raise ConfigInvalidValue(str(e)) if not validated_value == None: diff --git a/modules/ircv3_sasl/__init__.py b/modules/ircv3_sasl/__init__.py index 279d3e94..9f7fac5f 100644 --- a/modules/ircv3_sasl/__init__.py +++ b/modules/ircv3_sasl/__init__.py @@ -21,8 +21,8 @@ def _parse(value): if mechanism in ALL_MECHANISMS: return {"mechanism": mechanism.upper(), "args": arguments} else: - raise utils.SettingParseException("Unknown SASL mechanism '%s'" - % mechanism) + raise utils.settings.SettingParseException( + "Unknown SASL mechanism '%s'" % mechanism) SASL_TIMEOUT = 15 # 15 seconds