Skip to content
This repository was archived by the owner on Nov 22, 2024. It is now read-only.

Commit 0193fcf

Browse files
committed
more pylint work
1 parent 6cdd04b commit 0193fcf

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

CloudFlare/exceptions.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
class CloudFlareError(Exception):
44
""" errors for Cloudflare API"""
55

6-
class _code_message(object):
6+
class code_and_message(object):
77
""" a small class to save away an interger and string (the code and the message)"""
88

99
def __init__(self, code, message):
@@ -17,12 +17,12 @@ def __str__(self):
1717
def __init__(self, code, message, error_chain=None):
1818
""" errors for Cloudflare API"""
1919

20-
self.e = self._code_message(int(code), str(message))
20+
self.e = self.code_and_message(int(code), str(message))
2121
self.error_chain = None
2222
if error_chain != None:
2323
self.error_chain = []
2424
for e in error_chain:
25-
self.error_chain.append(self._code_message(int(e['code']), str(e['message'])))
25+
self.error_chain.append(self.code_and_message(int(e['code']), str(e['message'])))
2626
# self.error_chain.append({'code': self.code, 'message': str(self.message)})
2727

2828
def __int__(self):

0 commit comments

Comments
 (0)