Skip to content

Commit 438d328

Browse files
committed
Update contribute.py
1 parent b5fc368 commit 438d328

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

contribute.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ def decode_token(encoded_token):
156156
path = f"{root}/{filename}"
157157
print(path)
158158
if isImageFile(filename):
159-
with open(file=path, mode='rb', encoding='ascii') as file:
159+
with open(file=path, mode='rb') as file:
160160
image = file.read()
161161
content = base64.b64encode(image).decode('utf-8')
162162
else:

0 commit comments

Comments
 (0)