Commit 4dffac9a authored by Pavel Spirek's avatar Pavel Spirek

Attribute name fix

parent 1a41483a
...@@ -111,7 +111,7 @@ class UsrChangeJournal: ...@@ -111,7 +111,7 @@ class UsrChangeJournal:
# Call commit begin hook # Call commit begin hook
begin_hook_failed = False begin_hook_failed = False
try: try:
ds.commit_begin_callback() ds.handlers.commit_begin()
except Exception as e: except Exception as e:
error("Exception occured in commit_begin handler: {}".format(epretty(e))) error("Exception occured in commit_begin handler: {}".format(epretty(e)))
begin_hook_failed = True begin_hook_failed = True
...@@ -132,7 +132,7 @@ class UsrChangeJournal: ...@@ -132,7 +132,7 @@ class UsrChangeJournal:
end_hook_abort_failed = False end_hook_abort_failed = False
if not (begin_hook_failed or conf_handler_failed): if not (begin_hook_failed or conf_handler_failed):
try: try:
ds.commit_end_callback(failed=False) ds.handlers.commit_end(failed=False)
except Exception as e: except Exception as e:
error("Exception occured in commit_end handler: {}".format(epretty(e))) error("Exception occured in commit_end handler: {}".format(epretty(e)))
end_hook_failed = True end_hook_failed = True
...@@ -140,7 +140,7 @@ class UsrChangeJournal: ...@@ -140,7 +140,7 @@ class UsrChangeJournal:
if begin_hook_failed or conf_handler_failed or end_hook_failed: if begin_hook_failed or conf_handler_failed or end_hook_failed:
try: try:
# Call commit_end callback again with "failed" argument set to True # Call commit_end callback again with "failed" argument set to True
ds.commit_end_callback(failed=True) ds.handlers.commit_end(failed=True)
except Exception as e: except Exception as e:
error("Exception occured in commit_end handler (abort): {}".format(epretty(e))) error("Exception occured in commit_end handler (abort): {}".format(epretty(e)))
end_hook_abort_failed = True end_hook_abort_failed = True
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment