Skip to content

Fail when checking CSV input without property #28

Description

@jneubert

When submitting a CSV input file, I get:

# ./wdmapper.py check -f csv -i tests/gnd_repec_test.csv
#FORMAT: BEACON

Traceback (most recent call last):
  File "./wdmapper.py", line 8, in <module>
    main()
  File "/opt/wdmapper/wdmapper/cli.py", line 113, in main
    run(*args)
  File "/opt/wdmapper/wdmapper/cli.py", line 98, in run
    wdmapper.wdmapper(command, **vars(args))
  File "/opt/wdmapper/wdmapper/wdmapper.py", line 254, in wdmapper
    for delta in deltas:
  File "/opt/wdmapper/wdmapper/wikidata.py", line 147, in get_deltas
    p_target=target.id,
AttributeError: 'NoneType' object has no attribute 'id'

Input was identical to that in #25 (comment)

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