diff options
author | Mike Crute <mike@crute.us> | 2020-06-08 18:20:57 +0000 |
---|---|---|
committer | Mike Crute <mike@crute.us> | 2020-06-08 18:20:57 +0000 |
commit | 3681a9b616212656462efa0a9c78722f90cca442 (patch) | |
tree | 0199712af2f8abc5635d57d7e18ec63fe6d8b58e /pandora/errors.py | |
parent | 13b779eafd66a37ad5c50fa9be2bbc7962a73fce (diff) | |
download | pydora-3681a9b616212656462efa0a9c78722f90cca442.tar.bz2 pydora-3681a9b616212656462efa0a9c78722f90cca442.tar.xz pydora-3681a9b616212656462efa0a9c78722f90cca442.zip |
Use black for formatting
I don't particularly like the black formatter (does anybody, really?)
but it's guaranteed to be consistent so it should prevent nitpicking
style.
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 | ||