Skip to content

Commit f8aa25a

Browse files
Update get_json function call for werkzeug 2.1.0+ (#1939)
Co-authored-by: Anton Pirker <[email protected]>
1 parent 1e3e109 commit f8aa25a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

sentry_sdk/integrations/flask.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -173,7 +173,7 @@ def is_json(self):
173173

174174
def json(self):
175175
# type: () -> Any
176-
return self.request.get_json()
176+
return self.request.get_json(silent=True)
177177

178178
def size_of_file(self, file):
179179
# type: (FileStorage) -> int

0 commit comments

Comments
 (0)