From 444cd8dad4b5f09205a60cf36ba896304e0f67f1 Mon Sep 17 00:00:00 2001 From: Guilhem Lavaux Date: Tue, 19 Mar 2013 20:35:42 +0100 Subject: [PATCH] Added explanatory exception instead of a cryptic error for sample.dataFormat --- python_tools/void_python_tools/backend/launchers.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/python_tools/void_python_tools/backend/launchers.py b/python_tools/void_python_tools/backend/launchers.py index 1a0fb20..e056d84 100644 --- a/python_tools/void_python_tools/backend/launchers.py +++ b/python_tools/void_python_tools/backend/launchers.py @@ -162,6 +162,8 @@ def launchGenerate(sample, binPath, workDir=None, inputDataDir=None, dataFileLine = "gadget " + datafile elif sample.dataFormat == "sdf": dataFileLine = "sdf " + datafile + else: + raise ValueError("unknown dataFormat '%s'" % sample.dataFormat) iX = float(sample.mySubvolume[0]) iY = float(sample.mySubvolume[1])