Commit 9d76a7e9cbcbf069153baba991677865c063ff53

Authored by Luigi Tibaldo
1 parent b6a50751

missing if statement

Showing 1 changed file with 2 additions and 1 deletions
cscripts/csphagen.py
... ... @@ -656,7 +656,8 @@ class csphagen(ctools.csobservation):
656 656 self._log_string(gammalib.EXPLICIT, msg)
657 657 is_valid = False
658 658 # ... otherwise store region in container
659   - regions.append(region)
  659 + if is_valid:
  660 + regions.append(region)
660 661  
661 662 # Return
662 663 return regions
... ...