mirror of
https://github.com/bookwyrm-social/bookwyrm.git
synced 2024-12-12 11:16:33 +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):
|
||||
def filter(self, record):
|
||||
if(record.exc_info):
|
||||
if record.exc_info:
|
||||
(errType, errValue, _) = record.exc_info
|
||||
while errValue:
|
||||
if type(errValue).__name__ == 'VariableDoesNotExist':
|
||||
if type(errValue).__name__ == "VariableDoesNotExist":
|
||||
return False
|
||||
errValue = errValue.__context__
|
||||
return True
|
||||
|
|
Loading…
Reference in a new issue