summaryrefslogtreecommitdiff
path: root/oauthlib/common.py
diff options
context:
space:
mode:
authorHsiaoming Yang <me@lepture.com>2015-07-02 15:29:08 +0800
committerHsiaoming Yang <me@lepture.com>2015-07-02 17:24:35 +0800
commitf88408da8b4d222195caca46d10264d90a2bd167 (patch)
treed43f4f7dd61953f692b5bebfeb71300b71da1968 /oauthlib/common.py
parent7996067921ddd5eb3ff889270a5b02ce14997b10 (diff)
downloadoauthlib-f88408da8b4d222195caca46d10264d90a2bd167.tar.gz
Fix when body is None
Diffstat (limited to 'oauthlib/common.py')
-rw-r--r--oauthlib/common.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/oauthlib/common.py b/oauthlib/common.py
index 22c3573..d5d2eae 100644
--- a/oauthlib/common.py
+++ b/oauthlib/common.py
@@ -410,7 +410,7 @@ class Request(object):
def __repr__(self):
body = self.body
- if 'password=' in body:
+ if body and 'password=' in body:
body = PASSWORD_PATTERN.sub('password=***', body)
return '<oauthlib.Request url="%s", http_method="%s", headers="%s", body="%s">' % (
self.uri, self.http_method, self.headers, body)