Skip to content

Commit

Permalink
Making previous push flake 8 compatible
Browse files Browse the repository at this point in the history
  • Loading branch information
luisulloa authored and ashwoods committed Nov 3, 2017
1 parent 41e1484 commit f6afedb
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions raven/handlers/logging.py
Original file line number Diff line number Diff line change
Expand Up @@ -25,10 +25,12 @@
'relativeCreated', 'tags', 'message',
))

CONTEXTUAL = frozenset(('user','culprit', 'server_name', 'fingerprint'))
CONTEXTUAL = frozenset((
'user','culprit', 'server_name', 'fingerprint'
))


def extract_extra(record, reserved=RESERVED):
def extract_extra(record, reserved=RESERVED, contextual=CONTEXTUAL):
data = {}

extra = getattr(record, 'data', None)
Expand All @@ -43,7 +45,7 @@ def extract_extra(record, reserved=RESERVED):
continue
if k.startswith('_'):
continue
if '.' not in k and k not in CONTEXTUAL:
if '.' not in k and k not in contextual:
extra[k] = v
else:
data[k] = v
Expand Down

0 comments on commit f6afedb

Please sign in to comment.