From 843dfec3b3a5b05843ebf5049aa2c522b27dcc5a Mon Sep 17 00:00:00 2001 From: Ruge Li <91452427+rugeli@users.noreply.github.com> Date: Thu, 16 May 2024 11:32:21 -0700 Subject: [PATCH] call path validation when initiating the packing for remote recipes (#248) --- cellpack/autopack/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/cellpack/autopack/__init__.py b/cellpack/autopack/__init__.py index 12de9315..5c3e6ea4 100755 --- a/cellpack/autopack/__init__.py +++ b/cellpack/autopack/__init__.py @@ -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