Skip to content

Commit

Permalink
provide readme url when db not initialized
Browse files Browse the repository at this point in the history
  • Loading branch information
rugeli committed May 13, 2024
1 parent ecdfde5 commit 555e8f4
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion cellpack/autopack/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -388,8 +388,9 @@ def load_file(filename, destination="", cache="geometries", force=None):
db = DATABASE_IDS.handlers().get(database_name)
initialize_db = db()
if not initialize_db._initialized:
readme_url = "https://github.com/mesoscope/cellpack?tab=readme-ov-file#introduction-to-remote-databases"
sys.exit(
"The selected database is not initialized. Please set up Firebase credentials to pack remote recipes."
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)
recipe_id = file_path.split("/")[-1]
Expand Down

0 comments on commit 555e8f4

Please sign in to comment.