Skip to content

Commit

Permalink
Update get_json function call for werkzeug 2.1.0+ (#1939)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton Pirker <anton.pirker@sentry.io>
  • Loading branch information
michielderoos and antonpirker committed Mar 3, 2023
1 parent 1e3e109 commit f8aa25a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sentry_sdk/integrations/flask.py
Expand Up @@ -173,7 +173,7 @@ def is_json(self):

def json(self):
# type: () -> Any
return self.request.get_json()
return self.request.get_json(silent=True)

def size_of_file(self, file):
# type: (FileStorage) -> int
Expand Down

0 comments on commit f8aa25a

Please sign in to comment.