summaryrefslogtreecommitdiffstats
path: root/Lib/http/client.py
diff options
context:
space:
mode:
Diffstat (limited to 'Lib/http/client.py')
-rw-r--r--Lib/http/client.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/Lib/http/client.py b/Lib/http/client.py
index d35f245..b9246fd 100644
--- a/Lib/http/client.py
+++ b/Lib/http/client.py
@@ -1121,6 +1121,8 @@ class ResponseNotReady(ImproperConnectionState):
class BadStatusLine(HTTPException):
def __init__(self, line):
+ if not line:
+ line = repr(line)
self.args = line,
self.line = line