From 2bf3699dd1f4f6da75ba5842e982270094f475ef Mon Sep 17 00:00:00 2001 From: Jürgen Knödlseder Date: Wed, 25 Mar 2015 18:29:44 +0100 Subject: [PATCH] Replace gammalib exception by Python exception --- scripts/csobsdef.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/scripts/csobsdef.py b/scripts/csobsdef.py index 744f6b6..69c919e 100755 --- a/scripts/csobsdef.py +++ b/scripts/csobsdef.py @@ -202,8 +202,7 @@ class csobsdef(ctools.cscript): # Throw an exception is there is no header information if pntdef.nrows() < 1: - raise gammalib.GException.invalid_value(self.name, - "No header found in pointing definition file.") + raise RuntimeError("No header found in pointing definition file.") # Clear observation container self.obs.clear() -- libgit2 0.21.4