mirror of
https://github.com/fhswf/aki_prj23_transparenzregister.git
synced 2025-05-14 00:18:46 +02:00
Removed error suppression from sql data transformation. (#205)
This commit is contained in:
parent
84d0139531
commit
68346aff15
@ -395,19 +395,13 @@ def add_person_relation(person: dict[str, Any], company_id: int, db: Session) ->
|
|||||||
db=db,
|
db=db,
|
||||||
)
|
)
|
||||||
except DataInvalidError:
|
except DataInvalidError:
|
||||||
# logger.exception("Test except: ")
|
|
||||||
if date_of_brith:
|
if date_of_brith:
|
||||||
# print("Break")
|
|
||||||
raise
|
raise
|
||||||
# TODO enable the following line
|
logger.debug(
|
||||||
# logger.warning(f"No date of birth birth for {name['firstname']} {name['lastname']}")
|
f"No date of birth birth for {person['name']['lastname']}, {person['name']['firstname']}"
|
||||||
|
)
|
||||||
db.rollback()
|
db.rollback()
|
||||||
return
|
return
|
||||||
except TypeError as error:
|
|
||||||
# TODO remove unhashable type catcher
|
|
||||||
if "unhashable type: 'dict'" in str(error):
|
|
||||||
return
|
|
||||||
raise
|
|
||||||
except Exception:
|
except Exception:
|
||||||
logger.exception("Test except")
|
logger.exception("Test except")
|
||||||
raise
|
raise
|
||||||
|
Loading…
x
Reference in New Issue
Block a user