[GH-ISSUE #1223] Bug: for line in hints[:5] if line.strip() TypeError: 'generator' object is not subscriptable #2259

Closed
opened 2026-03-01 17:57:44 +03:00 by kerem · 1 comment
Owner

Originally created by @sasasqt on GitHub (Aug 31, 2023).
Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1223

Describe the bug

when error is shorter than 5 lines, [:5] is not well defined
github.com/ArchiveBox/ArchiveBox@a837f870af/archivebox/logging_util.py (L444)

Steps to reproduce

Screenshots or log output

ArchiveBox version

replace this line with the *full*, unshortened output of running `archivebox version`
Originally created by @sasasqt on GitHub (Aug 31, 2023). Original GitHub issue: https://github.com/ArchiveBox/ArchiveBox/issues/1223 <!-- Please fill out the following information, feel free to delete sections if they're not applicable or if long issue templates annoy you. (the only required section is the version information) --> #### Describe the bug <!-- A description of what the bug is, what you expected to happen, and any relevant context about issue. --> when error is shorter than 5 lines, [:5] is not well defined https://github.com/ArchiveBox/ArchiveBox/blob/a837f870af34943ef47cae41c64e241244d701a5/archivebox/logging_util.py#L444 #### Steps to reproduce <!-- For example: 1. Ran ArchiveBox with the following config '...' 2. Saw this output during archiving '....' 3. UI didn't show the thing I was expecting '....' --> #### Screenshots or log output <!-- If applicable, post any relevant screenshots or copy/pasted terminal output from ArchiveBox. If you're reporting a parsing / importing error, **you must paste a copy of your redacted import file here**. --> #### ArchiveBox version <!-- Run the `archivebox version` command locally then copy paste the result here: --> ```logs replace this line with the *full*, unshortened output of running `archivebox version` ``` <!-- Tickets without full version info will closed until it is provided, we need the full output here to help you solve your issue -->
kerem closed this issue 2026-03-01 17:57:44 +03:00
Author
Owner

@pirate commented on GitHub (Aug 31, 2023):

fixed, thanks github.com/ArchiveBox/ArchiveBox@86366d5640

<!-- gh-comment-id:1701850563 --> @pirate commented on GitHub (Aug 31, 2023): fixed, thanks https://github.com/ArchiveBox/ArchiveBox/commit/86366d56402d1b9d79ab400d006b5cdb41ce43dc
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#2259
No description provided.