diff options
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/load_phenotypes_to_db.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/scripts/load_phenotypes_to_db.py b/scripts/load_phenotypes_to_db.py index dc083cd..8f49e10 100644 --- a/scripts/load_phenotypes_to_db.py +++ b/scripts/load_phenotypes_to_db.py @@ -358,7 +358,7 @@ def load_data(conn: mysqldb.Connection, job: dict) -> int: int(_job_metadata["dataset_id"])) # 1. Just retrive the publication: Don't create publications for now. _publication = fetch_publication_by_id( - conn, int(_job_metadata.get("publicationid", "0"))) or {"Id": 0} + conn, int(_job_metadata.get("publication_id", "0"))) or {"Id": 0} # 2. Save all new phenotypes: # -> return phenotype IDs bundle = Path(_job_metadata["bundle_file"]) @@ -491,7 +491,7 @@ if __name__ == "__main__": db_results = load_data(conn, job) - logger.debug("Unlocking all database tables.") + logger.info("Unlocking all database tables.") cursor.execute("UNLOCK TABLES") # Update authorisations (break this down) — maybe loop until it works? @@ -504,7 +504,7 @@ if __name__ == "__main__": try: sys.exit(main()) - except: + except Exception as _exc: logger.debug("Data loading failed… Halting!", exc_info=True) sys.exit(1) |