diff options
Diffstat (limited to 'src/utils')
| -rw-r--r-- | src/utils/__init__.py | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/utils/__init__.py b/src/utils/__init__.py index 36157204..e9e7bee5 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -264,6 +264,9 @@ def is_ip(s: str) -> bool: def is_main_thread() -> bool: return threading.current_thread() is threading.main_thread() +class SettingParseException(Exception): + pass + class Setting(object): example: typing.Optional[str] = None def __init__(self, name: str, help: str=None, example: str=None): |
