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…
Add table
Add a link
Reference in a new issue