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 6225fd6 commit dc301ecCopy full SHA for dc301ec
appium/webdriver/extensions/images_comparison.py
@@ -147,4 +147,7 @@ def _add_commands(self) -> None:
147
148
149
def _adjust_image_payload(payload: Base64Payload) -> str:
150
- return payload if isinstance(payload, str) else payload.decode('utf-8')
+ try:
151
+ return payload if isinstance(payload, str) else payload.decode('utf-8')
152
+ 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
0 commit comments