Fix encoding argument missing

This commit is contained in:
Orsiris de Jong 2023-03-13 19:36:11 +01:00
parent f24d98151a
commit 9d70a1a4ac
2 changed files with 2 additions and 2 deletions

View file

@ -239,7 +239,7 @@ This is free software, and you are welcome to redistribute it under certain cond
if args.license:
try:
with open(LICENSE_FILE, "r", "utf-8") as file_handle:
with open(LICENSE_FILE, "r", encoding="utf-8") as file_handle:
print(file_handle.read())
except OSError:
print(LICENSE_TEXT)

View file

@ -61,7 +61,7 @@ def _about_gui(version_string: str, config_dict: dict) -> None:
elif result is None:
new_version = [sg.Text(_t("config_gui.auto_upgrade_disabled"))]
try:
with open(LICENSE_FILE, "r") as file_handle:
with open(LICENSE_FILE, "r", encoding="utf-8") as file_handle:
license_content = file_handle.read()
except OSError:
logger.info("Could not read license file.")