Skip to content

Commit

Permalink
default lists for load args
Browse files Browse the repository at this point in the history
  • Loading branch information
gtfierro committed Mar 1, 2023
1 parent e938e5c commit e692d72
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions buildingmotif/bin/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,11 +103,11 @@ def load(args):
db_uri = get_db_uri(args)
bm = BuildingMOTIF(db_uri)
bm.setup_tables()
for directory in args.dir:
for directory in args.dir or []:
Library.load(directory=directory)
for ont in args.ont:
for ont in args.ont or []:
Library.load(ontology_graph=ont)
for library_manifest_file in args.library_manifest_file:
for library_manifest_file in args.library_manifest_file or []:
manifest_path = Path(library_manifest_file)
log.info(f"Loading buildingmotif libraries listed in {manifest_path}")
Library.load_from_libraries_yml(str(manifest_path))
Expand Down

0 comments on commit e692d72

Please sign in to comment.