jump workflow item: log exceptions

This commit is contained in:
Frédéric Péters 2012-08-16 10:21:22 +02:00
parent 708e9edab8
commit 8eed0b3214
1 changed files with 3 additions and 0 deletions

View File

@ -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()