Skip to content

Commit 4a8c25c

Browse files
committed
[py]: Remove unnecessary calls to mapping .keys()
1 parent a5ac62a commit 4a8c25c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

py/selenium/webdriver/remote/errorhandler.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -122,7 +122,7 @@ def check_response(self, response: Dict[str, Any]) -> None:
122122

123123
try:
124124
value = json.loads(value_json)
125-
if len(value.keys()) == 1:
125+
if len(value) == 1:
126126
value = value["value"]
127127
status = value.get("error", None)
128128
if not status:

0 commit comments

Comments
 (0)