+3
-3
lines changedFilter options
+3
-3
lines changed Original file line number Diff line number Diff line change
@@ -457,11 +457,11 @@ def _upload(self, filename):
457
457
try:
458
458
return self._execute(Command.UPLOAD_FILE, {'file': content})['value']
459
459
except WebDriverException as e:
460
-
if "Unrecognized command: POST" in e.__str__():
460
+
if "Unrecognized command: POST" in str(e):
461
461
return filename
462
-
elif "Command not found: POST " in e.__str__():
462
+
elif "Command not found: POST " in str(e):
463
463
return filename
464
-
elif '{"status":405,"value":["GET","HEAD","DELETE"]}' in e.__str__():
464
+
elif '{"status":405,"value":["GET","HEAD","DELETE"]}' in str(e):
465
465
return filename
466
466
else:
467
467
raise
You can’t perform that action at this time.
RetroSearch is an open source project built by @garambo | Open a GitHub Issue
Search and Browse the WWW like it's 1997 | Search results from DuckDuckGo
HTML:
3.2
| Encoding:
UTF-8
| Version:
0.7.4