Skip to content

Commit

Permalink
Enrich the traceback with the defined function
Browse files Browse the repository at this point in the history
  • Loading branch information
bxsx committed Sep 18, 2021
1 parent fd28884 commit 119dc59
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion rollbar/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -935,7 +935,7 @@ def _build_person_data(request):
if StarletteRequest:
from rollbar.contrib.starlette.requests import hasuser
else:
hasuser = lambda request: True
def hasuser(request): return True

if hasuser(request) and hasattr(request, 'user'):
user_prop = request.user
Expand Down

0 comments on commit 119dc59

Please sign in to comment.