Skip to content
This repository was archived by the owner on Jun 11, 2018. It is now read-only.

Commit 12c4084

Browse files
committed
Fix comment [ci skip]
1 parent 7d01940 commit 12c4084

1 file changed

Lines changed: 4 additions & 1 deletion

File tree

opbeat/contrib/django/client.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -107,7 +107,10 @@ def get_data_from_request(self, request):
107107
if request.method != 'GET':
108108
try:
109109
try:
110-
# Django 1.4+
110+
# Django 1.5+
111+
# NOTE: on Python 2.7 `hasattr(request, 'body')` returns
112+
# False, while it might throw the exception from Django in
113+
# Python 3.
111114
raw_data = request.body
112115
except AttributeError:
113116
raw_data = request.raw_post_data

0 commit comments

Comments
 (0)