Skip to content

Commit 68c576d

Browse files
committed
Explicitly catch AttributeError
1 parent c96997a commit 68c576d

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

raven/contrib/django/client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ def get_data_from_request(self, request):
7575
if request.method != 'GET':
7676
try:
7777
data = request.body
78-
except:
78+
except AttributeError:
7979
try:
8080
data = request.raw_post_data
8181
except Exception:

0 commit comments

Comments
 (0)