Skip to content
This repository has been archived by the owner on Dec 18, 2023. It is now read-only.

Commit

Permalink
Fix for issue #46
Browse files Browse the repository at this point in the history
  • Loading branch information
TheCaduceus authored Aug 8, 2023
1 parent a43a170 commit 9f1900b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions tg-upload.py
Original file line number Diff line number Diff line change
Expand Up @@ -400,7 +400,7 @@ def get_chatid(raw_id):
if args.proxy:
if not Path("proxy.json").exists():
raise FileNotFoundError("Not found: proxy.json [file].")
with open("proxy.json", "r") as proxy:
with open("proxy.json", "r", encoding="utf-8") as proxy:
try:
proxy_json = json_load(proxy)[args.proxy]
print(f"Connecting to {args.proxy}...")
Expand Down Expand Up @@ -653,7 +653,7 @@ def get_chatid(raw_id):
if args.capjson:
if not Path("caption.json").exists():
raise FileNotFoundError("Not found: caption.json [file].")
with open("caption.json", "r") as caption_json:
with open("caption.json", "r", encoding="utf-8") as caption_json:
try:
_caption = json_load(caption_json)[args.capjson]
except KeyError:
Expand Down

0 comments on commit 9f1900b

Please sign in to comment.