diff options
Diffstat (limited to 'pandora/errors.py')
-rw-r--r-- | pandora/errors.py | 9 |
1 files changed, 5 insertions, 4 deletions
diff --git a/pandora/errors.py b/pandora/errors.py index c978708..3b03db2 100644 --- a/pandora/errors.py +++ b/pandora/errors.py | |||
@@ -86,10 +86,11 @@ class PandoraException(Exception): | |||
86 | for code, api_message in __API_EXCEPTIONS__.items(): | 86 | for code, api_message in __API_EXCEPTIONS__.items(): |
87 | name = PandoraException._format_name(api_message) | 87 | name = PandoraException._format_name(api_message) |
88 | 88 | ||
89 | exception = type(name, (PandoraException,), { | 89 | exception = type( |
90 | "code": code, | 90 | name, |
91 | "message": api_message, | 91 | (PandoraException,), |
92 | }) | 92 | {"code": code, "message": api_message,}, |
93 | ) | ||
93 | 94 | ||
94 | export_to[name] = __API_EXCEPTIONS__[code] = exception | 95 | export_to[name] = __API_EXCEPTIONS__[code] = exception |
95 | 96 | ||