Skip to content

Update no longer Functions #17

Description

@Nathan3-14

Update doesn't work now that the script tool has been changed and the url /data/roles.json doesn't exist.

Traceback (most recent call last): File "<frozen runpy>", line 198, in _run_module_as_main File "<frozen runpy>", line 88, in _run_code File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Scripts\botc_tokens.exe\__main__.py", line 6, in <module> sys.exit(__main__.main()) ~~~~~~~~~~~~~^^ File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\site-packages\botc_tokens\__main__.py", line 59, in main retcode = allowed_commands[args.command][0]() File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\site-packages\botc_tokens\commands\update.py", line 85, in run wiki = prep_wiki(args.script_filter, args.custom_list) File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\site-packages\botc_tokens\commands\update.py", line 168, in prep_wiki wiki.load_from_web() ~~~~~~~~~~~~~~~~~~^^ File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\site-packages\botc_tokens\helpers\wiki_soup.py", line 27, in load_from_web roles_from_web = urlopen("https://script.bloodontheclocktower.com/data/roles.json").read().decode('utf-8') ~~~~~~~^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 189, in urlopen return opener.open(url, data, timeout) ~~~~~~~~~~~^^^^^^^^^^^^^^^^^^^^ File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 495, in open response = meth(req, response) File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 604, in http_response response = self.parent.error( 'http', request, response, code, msg, hdrs) File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 533, in error return self._call_chain(*args) ~~~~~~~~~~~~~~~~^^^^^^^ File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 466, in _call_chain result = func(*args) File "C:\Users\nathan\AppData\Local\Programs\Python\Python313\Lib\urllib\request.py", line 613, in http_error_default raise HTTPError(req.full_url, code, msg, hdrs, fp) urllib.error.HTTPError: HTTP Error 404: Not Found is the full error

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions