Skip to content

KeyError: 'alternative' attribute was not found in the photo field #859

@smaugfm

Description

@smaugfm

Overview

After update to 1.19.0 I occasionally get this errors:

KeyError: 'alternative' attribute was not found in the photo fields.

I traced the error to this line:

if "adjusted" in _results and _results["original"]["filename"] == _results["adjusted"]["filename"]:

Here are a couple of icloudpd-photo-error.jsons:
https://gist.github.com/smaugfm/9fbed4bd93a7ae637dac289a6d54867f
https://gist.github.com/smaugfm/4e065051c455592e36d926bb68512dbf

Steps to Reproduce

Seems to happen with MOV files, HEIC files, etc.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions