From f4ddeaf2bb26a80997522adaa62f87611e32c128 Mon Sep 17 00:00:00 2001 From: meisnate12 Date: Fri, 24 Feb 2023 00:08:42 -0500 Subject: [PATCH] [3] fix int error and config missing error --- VERSION | 2 +- pmm_overlay_reset.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/VERSION b/VERSION index 0b1d3f1..61d0082 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -0.9.9-develop2 +0.9.9-develop3 diff --git a/pmm_overlay_reset.py b/pmm_overlay_reset.py index aa7831e..089cabe 100644 --- a/pmm_overlay_reset.py +++ b/pmm_overlay_reset.py @@ -43,7 +43,7 @@ script_name = "PMM Overlay Reset" base_dir = os.path.dirname(os.path.abspath(__file__)) config_dir = os.path.join(base_dir, "config") -resume_file = os.path.join(config_dir, "config", "resume.por") +resume_file = os.path.join(config_dir, "resume.por") pmmargs = PMMArgs("meisnate12/PMM-Overlay-Reset", base_dir, options, use_nightly=False) logger = logging.PMMLogger(script_name, "overlay_reset", os.path.join(config_dir, "logs"), discord_url=pmmargs["discord"], is_trace=pmmargs["trace"], log_requests=pmmargs["log-requests"]) @@ -485,13 +485,13 @@ def reload(plex_item): except KeyboardInterrupt: if current_rk: with open(resume_file, "w") as handle: - handle.write(current_rk) + handle.write(str(current_rk)) logger.separator(f"User Canceled Run {script_name}") raise if current_rk: with open(resume_file, "w") as handle: - handle.write(current_rk) + handle.write(str(current_rk)) logger.error_report() logger.switch()