Commit cd63206c authored by Sylvain Thénault's avatar Sylvain Thénault
Browse files

[wf] use custom exception class

branch : 3.5
parent 5082dec70ed8
......@@ -16,6 +16,7 @@ from cubicweb.entities import AnyEntity, fetch_config
from cubicweb.interfaces import IWorkflowable
from cubicweb.common.mixins import MI_REL_TRIGGERS
class WorkflowException(Exception): pass
class Workflow(AnyEntity):
id = 'Workflow'
......@@ -160,7 +161,7 @@ class BaseTransition(AnyEntity):
def __init__(self, *args, **kwargs):
if == 'BaseTransition':
raise Exception('should not be instantiated')
raise WorkflowException('should not be instantiated')
super(BaseTransition, self).__init__(*args, **kwargs)
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