Commit dc4d0b54 by Guba Sándor

common: added WorkerNotFound exception

parent dad8e8f3
...@@ -14,6 +14,10 @@ from model_utils.models import TimeStampedModel ...@@ -14,6 +14,10 @@ from model_utils.models import TimeStampedModel
logger = getLogger(__name__) logger = getLogger(__name__)
class WorkerNotFound(Exception):
pass
def activitycontextimpl(act, on_abort=None, on_commit=None): def activitycontextimpl(act, on_abort=None, on_commit=None):
try: try:
yield act yield act
......
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 sign in to comment