Skip to content

Commit

Permalink
[3] fix int error and config missing error
Browse files Browse the repository at this point in the history
  • Loading branch information
meisnate12 committed Feb 24, 2023
1 parent e602c5f commit f4ddeaf
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion VERSION
Original file line number Diff line number Diff line change
@@ -1 +1 @@
0.9.9-develop2
0.9.9-develop3
6 changes: 3 additions & 3 deletions pmm_overlay_reset.py
Original file line number Diff line number Diff line change
Expand Up @@ -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"])
Expand Down Expand Up @@ -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()
Expand Down

0 comments on commit f4ddeaf

Please sign in to comment.