Turns out not all data is UTF-8, so don't try to decode it.

Fixes issue #204
This commit is contained in:
Lance Stout
2012-10-31 00:03:55 -07:00
parent 52feabbe76
commit 12e8bb6ddc
3 changed files with 16 additions and 16 deletions

View File

@@ -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):