Commit 2bf3699dd1f4f6da75ba5842e982270094f475ef

Authored by Jürgen Knödlseder
1 parent 8898fed9

Replace gammalib exception by Python exception

Showing 1 changed file with 1 additions and 2 deletions
scripts/csobsdef.py
@@ -202,8 +202,7 @@ class csobsdef(ctools.cscript): @@ -202,8 +202,7 @@ class csobsdef(ctools.cscript):
202 202
203 # Throw an exception is there is no header information 203 # Throw an exception is there is no header information
204 if pntdef.nrows() < 1: 204 if pntdef.nrows() < 1:
205 - raise gammalib.GException.invalid_value(self.name,  
206 - "No header found in pointing definition file.") 205 + raise RuntimeError("No header found in pointing definition file.")
207 206
208 # Clear observation container 207 # Clear observation container
209 self.obs.clear() 208 self.obs.clear()