diff options
| author | 2019-06-17 11:29:36 +0100 | |
|---|---|---|
| committer | 2019-06-17 11:29:36 +0100 | |
| commit | 76a2c66b3e1685a3f61c279acef92ca10f8af460 (patch) | |
| tree | f7626268256a235ee4ada2fad0c5fb8d5c930d4a /modules/config.py | |
| parent | Catch _to_context ValueError and show pretty error (diff) | |
| signature | ||
Show what the given context was when it's unknown
Diffstat (limited to 'modules/config.py')
| -rw-r--r-- | modules/config.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/modules/config.py b/modules/config.py index 1262aa5a..df6bf350 100644 --- a/modules/config.py +++ b/modules/config.py @@ -139,8 +139,8 @@ class Module(ModuleManager.BaseModule): event["target"], event["user"], context_desc) except ValueError: raise utils.EventError( - "Unknown context. Please provide " - "'user', 'channel', 'server' or 'bot'") + "Unknown context '%s'. Please provide " + "'user', 'channel', 'server' or 'bot'" % context_desc) permission_check = utils.Check("permission", "config") |
