Skip to content

Commit 43c5e88

Browse files
committed
run make fix to run with latest ruff
1 parent cf58685 commit 43c5e88

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

appium/webdriver/webdriver.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -348,8 +348,8 @@ def start_session(self, capabilities: Union[Dict, AppiumOptions], browser_profil
348348
# Due to a W3C spec parsing misconception some servers
349349
# pack the createSession response stuff into 'value' dictionary and
350350
# some other put it to the top level of the response JSON nesting hierarchy
351-
get_response_value: Callable[[str], Optional[Any]] = lambda key: response.get(key) or (
352-
response['value'].get(key) if isinstance(response.get('value'), dict) else None
351+
get_response_value: Callable[[str], Optional[Any]] = lambda key: (
352+
response.get(key) or (response['value'].get(key) if isinstance(response.get('value'), dict) else None)
353353
)
354354
session_id = get_response_value('sessionId')
355355
if not session_id:

0 commit comments

Comments
 (0)