Skip to content

Commit

Permalink
more pylint work
Browse files Browse the repository at this point in the history
  • Loading branch information
mahtin committed Dec 22, 2016
1 parent 6cdd04b commit 0193fcf
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions CloudFlare/exceptions.py
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
class CloudFlareError(Exception):
""" errors for Cloudflare API"""

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

def __init__(self, code, message):
Expand All @@ -17,12 +17,12 @@ def __str__(self):
def __init__(self, code, message, error_chain=None):
""" errors for Cloudflare API"""

self.e = self._code_message(int(code), str(message))
self.e = self.code_and_message(int(code), str(message))
self.error_chain = None
if error_chain != None:
self.error_chain = []
for e in error_chain:
self.error_chain.append(self._code_message(int(e['code']), str(e['message'])))
self.error_chain.append(self.code_and_message(int(e['code']), str(e['message'])))
# self.error_chain.append({'code': self.code, 'message': str(self.message)})

def __int__(self):
Expand Down

0 comments on commit 0193fcf

Please sign in to comment.