Skip to content
Permalink
Browse files
fix: removed exception if keywords missing
  • Loading branch information
lrosenth committed Aug 22, 2019
1 parent be00d77 commit 81f7d97e856fcd311c2a3236b33785ae1749ba1e
Showing with 4 additions and 4 deletions.
  1. +4 −4 knora/create_ontology.py
@@ -57,8 +57,8 @@ def program(args):
shortcode=ontology["project"]["shortcode"],
shortname=ontology["project"]["shortname"],
longname=ontology["project"]["longname"],
descriptions=ontology["project"]["descriptions"],
keywords=ontology["project"]["keywords"]
descriptions=ontology["project"].get("descriptions"),
keywords=ontology["project"].get("keywords")
)
print("New project created: IRI: " + proj_iri)
else:
@@ -69,8 +69,8 @@ def program(args):
shortcode=ontology["project"]["shortcode"],
shortname=ontology["project"]["shortname"],
longname=ontology["project"]["longname"],
descriptions=ontology["project"]["descriptions"],
keywords=ontology["project"]["keywords"]
descriptions=ontology["project"].get("descriptions"),
keywords=ontology["project"].get("keywords")
)
project = con.get_project(ontology["project"]["shortcode"])
print("New project data:")

0 comments on commit 81f7d97

Please sign in to comment.