We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent b7a51e4 commit 2482d3cCopy full SHA for 2482d3c
appium/webdriver/extensions/images_comparison.py
@@ -148,7 +148,6 @@ def _add_commands(self) -> None:
148
149
def _adjust_image_payload(payload: Base64Payload) -> str:
150
try:
151
- return payload if isinstance(payload, str) else payload.decode('utf-8')
152
- except UnicodeDecodeError as e:
+ return payload if isinstance(payload, str) else payload.decode('utf-8')
+ except UnicodeDecodeError as e:
153
raise ValueError('The image payload cannot be serialized to a string. Make sure to base64-encode it first') from e
154
-
0 commit comments