Commit 2bf3699dd1f4f6da75ba5842e982270094f475ef
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 | 202 | |
| 203 | 203 | # Throw an exception is there is no header information |
| 204 | 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 | 207 | # Clear observation container |
| 209 | 208 | self.obs.clear() | ... | ... |