Improved flake8 results
This commit is contained in:
parent
fb606b189d
commit
3b9ef670fe
24 changed files with 256 additions and 126 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue