diff options
| author | 2018-10-16 14:47:01 +0100 | |
|---|---|---|
| committer | 2018-10-16 14:47:01 +0100 | |
| commit | ba3cd00c785921dc3150510d889cc2373f8757b3 (patch) | |
| tree | 6318801dc8bc5af36414b0a5e259501c7413c530 /src/utils | |
| parent | Typo in modules/coins.py.send(), 'target' -> 'target_user' (diff) | |
| signature | ||
Add utils.EventError, utilise it for stderr in commands.py/coins.py
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 ab67ba86..a95790da 100644 --- a/src/utils/__init__.py +++ b/src/utils/__init__.py @@ -134,6 +134,9 @@ def get_closest_setting(event, setting, default=None): def prevent_highlight(nickname): return nickname[0]+"\u200c"+nickname[1:] +class EventError(Exception): + pass + def _set_get_append(obj, setting, item): if not hasattr(obj, setting): setattr(obj, setting, []) |
