Bug 1417821 - Use string representation of http_status. r=whimboo

The WebDriverException.http_status can be None if it falls back to
the WebDriverException abstract class.

MozReview-Commit-ID: mgWKfDtTYO

--HG--
extra : rebase_source : fc0f42e1e26e7da9a834384d78345365a1a8ccfc
This commit is contained in:
Andreas Tolfsen 2017-11-24 16:30:57 +00:00
parent d965dc4ff3
commit 6180e6c94d
2 changed files with 4 additions and 4 deletions

View File

@ -576123,7 +576123,7 @@
"support"
],
"webdriver/tests/support/fixtures.py": [
"765dd3821da0724024cdd61523f3d2fd79e8be28",
"2331c38e8de48de41b982dee01b14cfe1092cad0",
"support"
],
"webdriver/tests/support/http_request.py": [
@ -576139,7 +576139,7 @@
"support"
],
"webdriver/tests/support/wait.py": [
"a4b0c9c340ea7055139d9fcab3246ee836d6a441",
"1f6340b5819124bb31831efa532592e9e1696b06",
"support"
],
"webdriver/tests/switch_to_parent_frame.py": [

View File

@ -11,10 +11,10 @@ class WebDriverException(Exception):
self.stacktrace = stacktrace
def __repr__(self):
return "<%s http_status=%d>" % (self.__class__.__name__, self.http_status)
return "<%s http_status=%s>" % (self.__class__.__name__, self.http_status)
def __str__(self):
return ("%s (%d)\n"
return ("%s (%s)\n"
"\n"
"Remote-end stacktrace:\n"
"\n"