summaryrefslogtreecommitdiff
path: root/e3372.py
diff options
context:
space:
mode:
Diffstat (limited to 'e3372.py')
-rw-r--r--e3372.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/e3372.py b/e3372.py
index 35eb411..4b7a32d 100644
--- a/e3372.py
+++ b/e3372.py
@@ -107,8 +107,8 @@ class E3372Error(Exception):
self.traceback = sys.exc_info()
try:
- msg = '[{0}] {1}'.format(error_code.name, message.format(*args, **kwargs))
+ msg = '[{0}] {1}'.format(error_code, message.format(*args, **kwargs))
except (IndexError, KeyError):
- msg = '[{0}] {1}'.format(error_code.name, message)
+ msg = '[{0}] {1}'.format(error_code, message)
super().__init__(msg) \ No newline at end of file