Skip to content

Commit 08b7615

Browse files
committed
Fix type errors
1 parent 1e90d92 commit 08b7615

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

python/PiFinder/catalog_imports/harris_loader.py

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,9 @@ def load_harris() -> None:
385385
logging.info("Loading Harris Globular Cluster catalog")
386386
catalog: str = "Har"
387387
obj_type: str = "Gb" # Globular Cluster
388+
389+
if objects_db is None:
390+
raise RuntimeError("Database not initialized. Call init_shared_database() first.")
388391
conn, _ = objects_db.get_conn_cursor()
389392

390393
# Enable bulk mode to prevent commits during insert operations

0 commit comments

Comments
 (0)