Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
cyrillkuettel committed Jul 31, 2024
1 parent eb0abff commit 26ad4b1
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/privatim/views/consultations.py
Original file line number Diff line number Diff line change
Expand Up @@ -316,9 +316,7 @@ def delete_consultation_chain(
# The Status and files will be automatically deleted due to cascade
try:
session.delete(consultation)
session.flush()
except Exception as e:
session.rollback()
log.error(f'Error deleting consultation: {e}')

session.flush()
Expand Down

0 comments on commit 26ad4b1

Please sign in to comment.