Skip to content
This repository has been archived by the owner. It is now read-only.

[References] Editing a Zotero reference without 'firstName' and 'lastName' for 'creators' makes NeuroCurator crashes #92

Open
pafonta opened this issue Aug 22, 2018 · 0 comments
Assignees
Labels
Milestone

Comments

@pafonta
Copy link
Contributor

pafonta commented Aug 22, 2018

Steps:

  1. Click on a reference using 'name' instead of 'firstName' and 'lastName' for 'creators'.
  2. Click on 'Cancel' if the 'This paper is not already in the curator database' dialog appears.
  3. Click on 'Zotero' in the menu bar.
  4. Click on its item 'Edit reference'.
  5. NeuroCurator crashes with the following stack trace.

The only reference causing this issue is the one with the DOI 10.1113/JP274049, as of 20.08.18.

This issue is related to the discovery made in BlueBrain/nat#17.

Stack trace:

Traceback (most recent call last):
  File "/Users/fonta/repos/neurocurator/neurocurator/zotero_widget.py", line 148, in edit_reference
    dialog.load_reference_data(reference["data"])
  File "/Users/fonta/repos/neurocurator/neurocurator/zotero_edition.py", line 84, in load_reference_data
    widget.load_creators(ref_data[self.CREATORS_FIELD])
  File "/Users/fonta/repos/neurocurator/neurocurator/zotero_edition.py", line 220, in load_creators
    cell_value = creator[self.HEADERS[j]]
KeyError: 'firstName'
@pafonta pafonta added the bug label Aug 22, 2018
@pafonta pafonta self-assigned this Aug 22, 2018
@pafonta pafonta modified the milestones: v0.5.0, v0.5.1 Oct 12, 2018
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

No branches or pull requests

1 participant