core (logs): workaround for pyjamas bug

This commit is contained in:
Goffi 2014-05-08 17:16:15 +02:00
commit 2aeada884e

View file

@ -91,7 +91,7 @@ class Logger(object):
try:
if not self.filter_name.dictFilter(record):
raise Filtered
except AttributeError:
except (AttributeError, TypeError): # XXX: TypeError is here because of a pyjamas bug which need to be fixed (TypeError is raised instead of AttributeError)
if self.filter_name is not None:
raise ValueError("Bad filter: filters must have a .filter method")
try: