summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--updatewcs/apply_corrections.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/updatewcs/apply_corrections.py b/updatewcs/apply_corrections.py
index 832fa32..9c7f22a 100644
--- a/updatewcs/apply_corrections.py
+++ b/updatewcs/apply_corrections.py
@@ -89,6 +89,8 @@ def applyDgeoCorr(fname, udgeocorr):
try:
# get DGEOFILE kw from primary header
fdgeo0 = pyfits.getval(fname, 'DGEOFILE')
+ if fdgeo0 == 'N/A':
+ return False
fdgeo0 = fileutil.osfn(fdgeo0)
if not fileutil.findFile(fdgeo0):
print 'Kw DGEOFILE exists in primary header but file %s not found\n' % fdgeo0