A RetroSearch Logo

Home - News ( United States | United Kingdom | Italy | Germany ) - Football scores

Search Query:

Showing content from https://github.com/seleniumhq/selenium/commit/96eaad4110a3ffc4ea8af3aeffdd97235e70421d below:

use `str(...)` in place of `__str__(...)` · SeleniumHQ/selenium@96eaad4 · GitHub

File tree Expand file treeCollapse file tree 1 file changed

+3

-3

lines changed

Filter options

Expand file treeCollapse file tree 1 file changed

+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