Skip to content

Commit b7a51e4

Browse files
authored
refactor: add from e
1 parent 9c46a64 commit b7a51e4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

appium/webdriver/extensions/images_comparison.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -150,5 +150,5 @@ def _adjust_image_payload(payload: Base64Payload) -> str:
150150
try:
151151
return payload if isinstance(payload, str) else payload.decode('utf-8')
152152
except UnicodeDecodeError as e:
153-
raise ValueError('The image payload cannot be serialized to a string. Make sure to base64-encode it first')
153+
raise ValueError('The image payload cannot be serialized to a string. Make sure to base64-encode it first') from e
154154

0 commit comments

Comments
 (0)