We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 0f12c5c commit c4006c6Copy full SHA for c4006c6
tern.py
@@ -264,7 +264,7 @@ def f(port, doc):
264
req = opener.open("http://" + localhost + ":" + str(port) + "/", json.dumps(doc).encode("utf-8"), 1)
265
return json.loads(req.read().decode("utf-8"))
266
except urllib.error.URLError as error:
267
- raise Req_Error((hasattr(error, "read") and error.read().decode("utf-8")) or error.reason)
+ raise Req_Error((hasattr(error, "read") and error.read().decode("utf-8")) or str(error.reason))
268
return f
269
270
if python3:
0 commit comments