Skip to content

Commit

Permalink
fixed unspecified-encoding #pylint
Browse files Browse the repository at this point in the history
  • Loading branch information
hoosnick authored Aug 22, 2023
1 parent b372620 commit 712381c
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lib/payme/methods/generate_link.py
Original file line number Diff line number Diff line change
Expand Up @@ -125,7 +125,7 @@ def to_qrcode(self, path: str = 'qr-codes', filename: str = None, **kwargs):
image_name = uuid.uuid4().hex if not filename else filename
image_output_path = f'{path}/{image_name}.svg'

with open(image_output_path, 'w') as svg:
with open(image_output_path, 'w', encoding='utf-8') as svg:
svg.write(message.split(',')[-1])

return image_output_path
Expand Down

0 comments on commit 712381c

Please sign in to comment.