frenchcutgreenbean / UNIT3D-Upload-Checker

Scan files to upload for missing releases on UNIT3D based trackers
7 stars 1 forks source link

update_setting...keyError: 'ua_path' #7

Closed Zenya393 closed 1 month ago

Zenya393 commented 1 month ago

When executing the command: # ./check.py save

Receive error message:

Traceback (most recent call last):
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 884, in <module>
    ch = UploadChecker()
         ^^^^^^^^^^^^^^^
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 36, in __init__
    self.update_settings()
  File "/home/uploadchecker/UNIT3D-Upload-Checker/./check.py", line 846, in update_settings
    self.ua_path = self.current_settings["ua_path"]
                   ~~~~~~~~~~~~~~~~~~~~~^^^^^^^^^^^
KeyError: 'ua_path'

Solution: Needed to add this line to the settings.py file: "ua_path": "",

Zenya393 commented 1 month ago

There was an upgrade that required the following line to be added to my settings.json file.

"ua_path": "",

If there's a better way of knowing the settings.json file has changed, please let me know.