From 9ef9a057f9077d4e3abad4f34eee3e95f64d18ce Mon Sep 17 00:00:00 2001 From: Nadia Dencheva Date: Mon, 18 Jul 2016 11:31:42 -0400 Subject: Fix a problem with removing Lookup tale distortions. --- lib/stwcs/updatewcs/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/updatewcs/utils.py') diff --git a/lib/stwcs/updatewcs/utils.py b/lib/stwcs/updatewcs/utils.py index 9a66225..1214199 100644 --- a/lib/stwcs/updatewcs/utils.py +++ b/lib/stwcs/updatewcs/utils.py @@ -255,7 +255,7 @@ def remove_distortion(fname, dist_keyword): for kw in keywords: try: del f[hdu].header[kw] - except AttributeError: + except KeyError: pass ext_mapping = altwcs.mapFitsExt2HDUListInd(fname, extname).values() ext_mapping.sort() -- cgit