summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorEvgeny Zinoviev <me@ch1p.io>2021-03-23 01:59:15 +0300
committerEvgeny Zinoviev <me@ch1p.io>2021-03-23 01:59:15 +0300
commit8c9d10fba12fad2fa39390df42cbc33f7b89e89e (patch)
tree606dddeaa2c60e8c65aed6baccc2c3abc4ce7678
parent876c206153e5d71004a83d203aa8def2f5cd5cf8 (diff)
rename error class
-rw-r--r--e3372.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/e3372.py b/e3372.py
index 4b7a32d..016329c 100644
--- a/e3372.py
+++ b/e3372.py
@@ -83,7 +83,7 @@ class E3372:
if message_node:
message = message_node.get_text()
- raise E3372Error(code, message=message)
+ raise APIError(code, message=message)
return soup.find('response')
@@ -101,7 +101,7 @@ class SMS:
return int(datetime.strptime(self.date, '%Y-%m-%d %H-%M-%S').strftime("%s"))
-class E3372Error(Exception):
+class APIError(Exception):
def __init__(self, error_code, message='', *args, **kwargs):
self.error_code = error_code
self.traceback = sys.exc_info()