Skip to content

Commit

Permalink
raise error if image is not flat
Browse files Browse the repository at this point in the history
  • Loading branch information
mommermi committed Jun 6, 2019
1 parent 8cbcf6f commit 572d7e0
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion pp_prepare.py
Original file line number Diff line number Diff line change
Expand Up @@ -84,7 +84,9 @@ def prepare(filenames, obsparam, header_update, keep_wcs=False,
logging.error('This is not a single-extension FITS file. Please '
'extract individual extensions and run them '
'individually.')
sys.exit()
raise ValueError(('This is not a single-extension FITS file. Please '
'extract individual extensions and run them '
'individually.'))

# keywords that have to be implanted into each image
implants = {}
Expand Down

0 comments on commit 572d7e0

Please sign in to comment.