Thanks to visit codestin.com
Credit goes to github.com

Skip to content

CoverWidget exception with empty data #732

@mizaki

Description

@mizaki
Traceback (most recent call last):
  File "/home/workspace/comictagger/comictaggerlib/ui/qtutils.py", line 133, in get_qimage_from_data
    Image.open(io.BytesIO(image_data)).save(buffer, format="ppm")
  File "/home/workspace/comictagger/venv/lib64/python3.10/site-packages/PIL/Image.py", line 3298, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f97a23f8450>
2025-02-27T15:29:12 | comictaggerlib.ui.qtutils | ERROR | Failed to load the image
Traceback (most recent call last):
  File "/home/workspace/comictagger/comictaggerlib/ui/qtutils.py", line 133, in get_qimage_from_data
    Image.open(io.BytesIO(image_data)).save(buffer, format="ppm")
  File "/home/workspace/comictagger/venv/lib64/python3.10/site-packages/PIL/Image.py", line 3298, in open
    raise UnidentifiedImageError(msg)
PIL.UnidentifiedImageError: cannot identify image file <_io.BytesIO object at 0x7f97a23fa520>

The options I see are:

  1. Add a URL to ImageHash to be used for the issue window
  2. If the _cover_image is an ImageHash, do nothing (default blank)

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions