Bug 1411045 - Fix error.get argument name. r?maja_zf
We talk about "error codes", not "status codes", for WebDriver errors.
This is a non-functional change.
MozReview-Commit-ID: Bl8zT8lZvzK
--- a/testing/web-platform/tests/tools/webdriver/webdriver/error.py
+++ b/testing/web-platform/tests/tools/webdriver/webdriver/error.py
@@ -140,19 +140,20 @@ class UnknownMethodException(WebDriverEx
status_code = "unknown method"
class UnsupportedOperationException(WebDriverException):
http_status = 500
status_code = "unsupported operation"
-def get(status_code):
- """Gets exception from `status_code`, falling back to
+def get(error_code):
+ """
+ Gets exception from `error_code`, falling back to
``WebDriverException`` if it is not found.
"""
- return _errors.get(status_code, WebDriverException)
+ return _errors.get(error_code, WebDriverException)
_errors = collections.defaultdict()
for item in locals().values():
if type(item) == type and issubclass(item, WebDriverException):
_errors[item.status_code] = item