Skip to content

Commit 2482d3c

Browse files
committed
style: ruff formatting
1 parent b7a51e4 commit 2482d3c

File tree

1 file changed

+2
-3
lines changed

1 file changed

+2
-3
lines changed

appium/webdriver/extensions/images_comparison.py

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -148,7 +148,6 @@ def _add_commands(self) -> None:
148148

149149
def _adjust_image_payload(payload: Base64Payload) -> str:
150150
try:
151-
return payload if isinstance(payload, str) else payload.decode('utf-8')
152-
except UnicodeDecodeError as e:
151+
return payload if isinstance(payload, str) else payload.decode('utf-8')
152+
except UnicodeDecodeError as e:
153153
raise ValueError('The image payload cannot be serialized to a string. Make sure to base64-encode it first') from e
154-

0 commit comments

Comments
 (0)