Skip to content
This repository was archived by the owner on Oct 23, 2023. It is now read-only.

Commit f6afedb

Browse files
luisulloaashwoods
authored andcommitted
Making previous push flake 8 compatible
1 parent 41e1484 commit f6afedb

File tree

1 file changed

+5
-3
lines changed

1 file changed

+5
-3
lines changed

raven/handlers/logging.py

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -25,10 +25,12 @@
2525
'relativeCreated', 'tags', 'message',
2626
))
2727

28-
CONTEXTUAL = frozenset(('user','culprit', 'server_name', 'fingerprint'))
28+
CONTEXTUAL = frozenset((
29+
'user','culprit', 'server_name', 'fingerprint'
30+
))
2931

3032

31-
def extract_extra(record, reserved=RESERVED):
33+
def extract_extra(record, reserved=RESERVED, contextual=CONTEXTUAL):
3234
data = {}
3335

3436
extra = getattr(record, 'data', None)
@@ -43,7 +45,7 @@ def extract_extra(record, reserved=RESERVED):
4345
continue
4446
if k.startswith('_'):
4547
continue
46-
if '.' not in k and k not in CONTEXTUAL:
48+
if '.' not in k and k not in contextual:
4749
extra[k] = v
4850
else:
4951
data[k] = v

0 commit comments

Comments
 (0)