Skip to content
Snippets Groups Projects
Commit b671ffb1 authored by Stefano Borini's avatar Stefano Borini
Browse files

Catching exception at the base level

parent c08b202e
No related branches found
No related tags found
1 merge request!137Communicative workflow reader
This commit is part of merge request !137. Comments created here will be created in the context of that merge request.
......@@ -5,10 +5,6 @@ from traits.api import on_trait_change
from force_bdss.ids import InternalPluginID
from .base_core_driver import BaseCoreDriver
from .io.workflow_reader import (
InvalidVersionException,
InvalidFileException
)
log = logging.getLogger(__name__)
......@@ -24,8 +20,8 @@ class CoreEvaluationDriver(BaseCoreDriver):
def application_started(self):
try:
workflow = self.workflow
except (InvalidVersionException, InvalidFileException) as e:
log.exception(e)
except Exception:
log.exception("Unable to open workflow file.")
sys.exit(1)
mco_model = workflow.mco
......
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