Skip to content

Commit

Permalink
Fixed #423 requset._form may be None.
Browse files Browse the repository at this point in the history
  • Loading branch information
danielmorell committed Aug 30, 2024
1 parent 4f0ed56 commit 4c0076f
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 @@ -1372,7 +1372,7 @@ def _build_starlette_request_data(request):
'params': dict(request.path_params),
}

if hasattr(request, '_form'):
if hasattr(request, '_form') and request._form is not None:
request_data['POST'] = {
k: v.filename if isinstance(v, UploadFile) else v
for k, v in request._form.items()
Expand Down

0 comments on commit 4c0076f

Please sign in to comment.