[GH-ISSUE #53] Key error with submit to archive.org disabled #1545

Closed
opened 2026-03-01 17:51:36 +03:00 by kerem · 2 comments
Owner

Originally created by @lhagan on GitHub (Nov 6, 2017).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/53

In config.py, I've set:

SUBMIT_ARCHIVE_DOT_ORG = os.getenv('SUBMIT_ARCHIVE_DOT_ORG', 'False').lower() == 'true'

Running ./archive.py ~/Downloads/bookmarks_export.html yields the following error:

File "/home/lhagan/bookmark-archiver/index.py", line 141, in write_html_link_index
    'archive_org': link['latest']['archive_org'] or 'https://web.archive.org/save/{}'.format(link['url']),
KeyError: 'archive_org'

Am I doing this wrong or have I encountered a bug here?

Originally created by @lhagan on GitHub (Nov 6, 2017). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/53 In `config.py`, I've set: ``` SUBMIT_ARCHIVE_DOT_ORG = os.getenv('SUBMIT_ARCHIVE_DOT_ORG', 'False').lower() == 'true' ``` Running `./archive.py ~/Downloads/bookmarks_export.html` yields the following error: ``` File "/home/lhagan/bookmark-archiver/index.py", line 141, in write_html_link_index 'archive_org': link['latest']['archive_org'] or 'https://web.archive.org/save/{}'.format(link['url']), KeyError: 'archive_org' ``` Am I doing this wrong or have I encountered a bug here?
kerem closed this issue 2026-03-01 17:51:36 +03:00
Author
Owner

@pirate commented on GitHub (Nov 7, 2017):

Nope, you found a bug, sorry about that! I just fixed it (08591e8), pull master and try again.

<!-- gh-comment-id:342585816 --> @pirate commented on GitHub (Nov 7, 2017): Nope, you found a bug, sorry about that! I just fixed it (08591e8), pull master and try again.
Author
Owner

@pirate commented on GitHub (Nov 7, 2017):

Closing this for now, comment back here if you're still having any problems.

<!-- gh-comment-id:342588890 --> @pirate commented on GitHub (Nov 7, 2017): Closing this for now, comment back here if you're still having any problems.
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference
starred/ArchiveBox#1545
No description provided.