Skip to content

Commit

Permalink
Merge pull request #104 from sapcc/fix_nontype_error_check
Browse files Browse the repository at this point in the history
fix nonetype error check by checking if not none
  • Loading branch information
notque authored Jan 10, 2025
2 parents 0b8d886 + 11e9743 commit 2361acf
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions auditmiddleware/_api.py
Original file line number Diff line number Diff line change
Expand Up @@ -453,6 +453,7 @@ def _create_events(self, target_project, res_id,

# attach payload if requested
if self._payloads_enabled and res_spec.payloads['enabled'] \
and request.content_length is not None \
and request.content_length > 0 \
and request.content_type == "application/json":
req_pl = request.json
Expand Down

0 comments on commit 2361acf

Please sign in to comment.