mirror of
https://github.com/netinvent/npbackup.git
synced 2025-09-10 06:54:54 +08:00
Fix encoding argument missing
This commit is contained in:
parent
f24d98151a
commit
9d70a1a4ac
2 changed files with 2 additions and 2 deletions
|
@ -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)
|
||||
|
|
|
@ -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.")
|
||||
|
|
Loading…
Add table
Reference in a new issue