misc: fix parameters passed to logging functions (#23392)
This commit is contained in:
parent
6628b56429
commit
a88ab2d0fb
|
@ -51,7 +51,7 @@ class Condition(object):
|
|||
return getattr(self, 'evaluate_' + self.type)(local_variables)
|
||||
except Exception as e:
|
||||
if self.log_errors:
|
||||
get_logger().warn('failed to evaluate %r (%r)', (self, e))
|
||||
get_logger().warn('failed to evaluate %r (%r)', self, e)
|
||||
if self.record_errors:
|
||||
get_publisher().notify_of_exception(sys.exc_info())
|
||||
raise RuntimeError()
|
||||
|
|
Loading…
Reference in New Issue