mirror of
https://github.com/apache/superset.git
synced 2026-04-25 02:55:07 +00:00
fix: Ensure consistent rollback logic (#20811)
This commit is contained in:
@@ -40,8 +40,7 @@ class AnnotationDAO(BaseDAO):
|
||||
if commit:
|
||||
db.session.commit()
|
||||
except SQLAlchemyError as ex:
|
||||
if commit:
|
||||
db.session.rollback()
|
||||
db.session.rollback()
|
||||
raise DAODeleteFailedError() from ex
|
||||
|
||||
@staticmethod
|
||||
|
||||
Reference in New Issue
Block a user