Skip to content

Commit

Permalink
call path validation when initiating the packing for remote recipes (#…
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli authored May 16, 2024
1 parent 560b01e commit 843dfec
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions cellpack/autopack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -393,6 +393,7 @@ def load_file(filename, destination="", cache="geometries", force=None):
f"The selected database is not initialized. Please set up Firebase credentials to pack remote recipes. Refer to the instructions at {readme_url}"
)
db_handler = DBRecipeLoader(initialize_db)
db_handler.validate_input_recipe_path(filename)
recipe_id = file_path.split("/")[-1]
db_doc, _ = db_handler.collect_docs_by_id(
collection="recipes", id=recipe_id
Expand Down

0 comments on commit 843dfec

Please sign in to comment.