Skip to content
Snippets Groups Projects
Commit 3a1499a2 authored by martinRenou's avatar martinRenou
Browse files

Add support for py3

parent 959953b4
No related branches found
No related tags found
1 merge request!27Add file version handling for workflow file.
from __future__ import print_function
import sys import sys
from traits.api import on_trait_change from traits.api import on_trait_change
...@@ -17,10 +19,10 @@ class CoreMCODriver(BaseCoreDriver): ...@@ -17,10 +19,10 @@ class CoreMCODriver(BaseCoreDriver):
try: try:
workflow = self.application.workflow workflow = self.application.workflow
except InvalidVersionException as e: except InvalidVersionException as e:
print e.message print(e.message)
sys.exit(1) sys.exit(1)
except CorruptedInputFile as e: except CorruptedInputFile as e:
print e.message print(e.message)
sys.exit(1) sys.exit(1)
mco_data = workflow.multi_criteria_optimizer mco_data = workflow.multi_criteria_optimizer
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment