Error handling when url is not found

@codesections reports:

The issue was a lack of error handling when the URI is correct but has no context in the archive. I fixed this by adding the code below at line 77 of context.py

    if id not in index:
        print("The status at the provided URL/URI had no context in your archive", file=sys.stderr)
        sys.exit(5)

A PR that should close this issue can be found at <https://github.com/codesections/mastodon-archive/tree/error_handling>

Tags: Closed

Reopen issue

Comments


This wiki uses a variant of Markdown.

To save this page you must answer this question:

Please write "new issue" into the field below.