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 committed May 8, 2024
1 parent a8e71d8 commit 3e622d5
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 @@ -388,6 +388,7 @@ def load_file(filename, destination="", cache="geometries", force=None):
db = DATABASE_IDS.handlers().get(database_name)
initialize_db = db()
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 3e622d5

Please sign in to comment.