Skip to content

Commit

Permalink
Merge remote-tracking branch 'soynatan/master'
Browse files Browse the repository at this point in the history
  • Loading branch information
samamorgan committed Jan 5, 2024
2 parents 460ab0c + 9e04815 commit 5e5fb07
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions easyaudit/signals/crud_flows.py
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
from easyaudit.middleware.easyaudit import get_current_user
from easyaudit.models import CRUDEvent
from easyaudit.settings import DATABASE_ALIAS, LOGGING_BACKEND
from easyaudit.utils import get_m2m_field_name
from easyaudit.utils import get_m2m_field_name, should_propagate_exceptions

logger = logging.getLogger(__name__)
audit_logger = import_string(LOGGING_BACKEND)()
Expand Down Expand Up @@ -61,8 +61,8 @@ def handle_flow_exception(instance, signal):
logger.exception(
f"easy audit had a {signal} exception on CRUDEvent creation.{instance_str}"
)

raise
if should_propagate_exceptions():
raise


def pre_save_crud_flow(instance, object_json_repr, changed_fields):
Expand Down

0 comments on commit 5e5fb07

Please sign in to comment.