From 876c206153e5d71004a83d203aa8def2f5cd5cf8 Mon Sep 17 00:00:00 2001 From: Evgeny Zinoviev Date: Tue, 23 Mar 2021 01:58:07 +0300 Subject: fix --- e3372.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'e3372.py') 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 -- cgit v1.2.3