Improved flake8 results

This commit is contained in:
Joel Collins 2019-05-24 16:32:20 +01:00
parent fb606b189d
commit 3b9ef670fe
24 changed files with 256 additions and 126 deletions

View file

@ -17,11 +17,11 @@ class LockError(ThreadError):
self.message = LockError.ERROR_CODES[code]
else:
self.message = "Unknown error."
self.string = "{}: {}".format(self.code, self.message)
print(self.string)
ThreadError.__init__(self)
def __str__(self):
return self.string