diff options
Diffstat (limited to 'Lib/logging')
-rw-r--r-- | Lib/logging/__init__.py | 7 |
1 files changed, 1 insertions, 6 deletions
diff --git a/Lib/logging/__init__.py b/Lib/logging/__init__.py index 551d85e..03ceb9c 100644 --- a/Lib/logging/__init__.py +++ b/Lib/logging/__init__.py @@ -613,13 +613,8 @@ class Filterer(object): for f in self.filters: if hasattr(f, 'filter'): result = f.filter(record) - elif hasattr(f, '__call__'): - try: - result = f(record) - except Exception: - result = True # filter failed, assume a pass else: - result = False # we don't know what f is + result = f(record) # assume callable - will raise if not if not result: rv = 0 break |