catch decryption error (#72)

This commit is contained in:
Yuxin Wu
2020-10-03 04:38:19 -07:00
parent 6f86622c93
commit b818b6e2aa
+1 -1
View File
@@ -129,8 +129,8 @@ class EmojiReader:
if data_md5 == md5:
return get_file_b64(fname), imghdr.what(fname)
content = self._decode_emoji(fname)
try:
content = self._decode_emoji(fname)
data_md5 = get_md5_hex(content)
if data_md5 != md5:
if content.startswith(b"wxgf"):