Turns out not all data is UTF-8, so don't try to decode it.
Fixes issue #204
This commit is contained in:
@@ -14,7 +14,7 @@ def to_b64(data):
|
||||
|
||||
|
||||
def from_b64(data):
|
||||
return bytes(base64.b64decode(bytes(data))).decode('utf-8')
|
||||
return bytes(base64.b64decode(bytes(data)))
|
||||
|
||||
|
||||
class Open(ElementBase):
|
||||
|
Reference in New Issue
Block a user