mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-13 11:46:35 +00:00
Run formatters
This commit is contained in:
parent
7ae0db7f4a
commit
7014786fe0
1 changed files with 2 additions and 2 deletions
|
@ -3,10 +3,10 @@ import logging
|
||||||
|
|
||||||
class IgnoreVariableDoesNotExist(logging.Filter):
|
class IgnoreVariableDoesNotExist(logging.Filter):
|
||||||
def filter(self, record):
|
def filter(self, record):
|
||||||
if(record.exc_info):
|
if record.exc_info:
|
||||||
(errType, errValue, _) = record.exc_info
|
(errType, errValue, _) = record.exc_info
|
||||||
while errValue:
|
while errValue:
|
||||||
if type(errValue).__name__ == 'VariableDoesNotExist':
|
if type(errValue).__name__ == "VariableDoesNotExist":
|
||||||
return False
|
return False
|
||||||
errValue = errValue.__context__
|
errValue = errValue.__context__
|
||||||
return True
|
return True
|
||||||
|
|
Loading…
Reference in a new issue