diff options
author | Hsiaoming Yang <me@lepture.com> | 2015-07-02 15:29:08 +0800 |
---|---|---|
committer | Hsiaoming Yang <me@lepture.com> | 2015-07-02 17:24:35 +0800 |
commit | f88408da8b4d222195caca46d10264d90a2bd167 (patch) | |
tree | d43f4f7dd61953f692b5bebfeb71300b71da1968 | |
parent | 7996067921ddd5eb3ff889270a5b02ce14997b10 (diff) | |
download | oauthlib-f88408da8b4d222195caca46d10264d90a2bd167.tar.gz |
Fix when body is None
-rw-r--r-- | oauthlib/common.py | 2 |
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) |