Skip to content

KeyError 'E' in process_file #188

Open
@krzysieqq

Description

@krzysieqq

When I tried to parse the below image, I got KeyError 'E' from the line logger.debug("Endian format is %s (%s)", endian, {. I've processed the image by running exifread.process_file(image, details=False, stop_tag="DateTimeOriginal") command.

/usr/local/lib/python3.8/site-packages/exifread/__init__.py, line 147, in process_file
        return {}
    except InvalidExif as err:
        logger.debug(err)
        return {}
    endian = chr(ord_(endian[0]))
    # deal with the EXIF info we found
    logger.debug("Endian format is %s (%s)", endian, { …
        'I': 'Intel',
        'M': 'Motorola',
        '\x01': 'Adobe Ducky',
        'd': 'XMP/Adobe unknown'
    }[endian])

3

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