Skip to content

Commit

Permalink
fix: removed exception if keywords missing
Browse files Browse the repository at this point in the history
  • Loading branch information
lrosenth committed Aug 22, 2019
1 parent be00d77 commit 81f7d97
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions knora/create_ontology.py
Expand Up @@ -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:
Expand All @@ -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:")
Expand Down

0 comments on commit 81f7d97

Please sign in to comment.