jump workflow item: log exceptions
This commit is contained in:
parent
708e9edab8
commit
8eed0b3214
|
@ -14,6 +14,8 @@
|
|||
# You should have received a copy of the GNU General Public License
|
||||
# along with this program; if not, see <http://www.gnu.org/licenses/>.
|
||||
|
||||
import sys
|
||||
|
||||
from qommon.form import *
|
||||
|
||||
from wcs.workflows import WorkflowStatusJumpItem, register_item_class
|
||||
|
@ -58,6 +60,7 @@ class JumpWorkflowStatusItem(WorkflowStatusJumpItem):
|
|||
try:
|
||||
condition = eval(self.condition, variables)
|
||||
except:
|
||||
get_publisher().notify_of_exception(sys.exc_info())
|
||||
condition = False
|
||||
if condition:
|
||||
wf_status = self.get_status()
|
||||
|
|
Loading…
Reference in New Issue