Skip to content

Commit

Permalink
Merge pull request getsentry#9 from rslinckx/patch-1
Browse files Browse the repository at this point in the history
utils/construct_checksum should handle 'module' or 'function' being None.
  • Loading branch information
dcramer committed Oct 19, 2011
2 parents dcaf065 + 3eb28f5 commit 55c22b9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions raven/utils/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def construct_checksum(level=logging.ERROR, class_name='', traceback='', message
if 'data' in kwargs and kwargs['data'] and '__sentry__' in kwargs['data'] and 'frames' in kwargs['data']['__sentry__']:
frames = kwargs['data']['__sentry__']['frames']
for frame in frames:
checksum.update(frame['module'])
checksum.update(frame['function'])
checksum.update(frame['module'] or '')
checksum.update(frame['function'] or '')

elif traceback:
traceback = '\n'.join(traceback.split('\n')[:-3])
Expand Down

0 comments on commit 55c22b9

Please sign in to comment.