From eac0217b788231dac81ac519e2aa5cd16bf39a43 Mon Sep 17 00:00:00 2001 From: Martin Diehl Date: Tue, 17 Jun 2014 07:29:05 +0000 Subject: [PATCH] check for valid marc version --- lib/damask/solver/marc.py | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/lib/damask/solver/marc.py b/lib/damask/solver/marc.py index f413574c3..bdd30cfa1 100644 --- a/lib/damask/solver/marc.py +++ b/lib/damask/solver/marc.py @@ -87,6 +87,10 @@ class Marc(Solver): if len(release) == 0: release = self.version(rootRelation) + if release not in self.releases: + raise Exception("Unknown MSC.Marc Version %s"%release) + + damaskEnv = damask.environment.Environment(rootRelation) user = os.path.join(damaskEnv.relPath('code/'),'DAMASK_marc') # might be updated if special version is found (usually symlink)