summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wcsutil/wcscorr.py4
1 files changed, 4 insertions, 0 deletions
diff --git a/wcsutil/wcscorr.py b/wcsutil/wcscorr.py
index 61f8461..bab0964 100644
--- a/wcsutil/wcscorr.py
+++ b/wcsutil/wcscorr.py
@@ -37,6 +37,10 @@ def init_wcscorr(input, force=False):
fimg = input
need_to_close = False
+ # Do not try to generate a WCSCORR table for a simple FITS file
+ if len(fimg) == 1:
+ return
+
# Verify that a WCSCORR extension does not already exist...
for extn in fimg:
if extn.header.has_key('extname') and \