Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add better error message if duplicate external IDs exist #8

Open
stuppie opened this issue Dec 6, 2018 · 0 comments
Open

Add better error message if duplicate external IDs exist #8

stuppie opened this issue Dec 6, 2018 · 0 comments

Comments

@stuppie
Copy link
Collaborator

stuppie commented Dec 6, 2018

Currently get

Traceback (most recent call last):
 File "/home/nuria/workspace/comm2net/Krusty/wd_to_neo4j.py", line 146, in <module>
   main(**d)
 File "/home/nuria/workspace/comm2net/Krusty/wd_to_neo4j.py", line 132, in main
   bot.run()
 File "/home/nuria/workspace/comm2net/Krusty/wd_to_neo4j.py", line 118, in run
   edge_lines.extend(self.handle_statement(s, start_id))
 File "/home/nuria/workspace/comm2net/Krusty/wd_to_neo4j.py", line 95, in handle_statement
   line[':END_ID'] = self.qid_dbxref["Q" + str(s.get_value())] if s.data_type == "wikibase-item" else s.get_value()
KeyError: 'Q184'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant