diff options
author | Nadia Dencheva <nadia.astropy@gmail.com> | 2016-07-18 11:57:41 -0400 |
---|---|---|
committer | GitHub <noreply@github.com> | 2016-07-18 11:57:41 -0400 |
commit | 16a5b8a6e9a1f76f5a678852033442c7eef952a0 (patch) | |
tree | ee939e65f4d57842de16d582341ebfbcc1951712 /lib/stwcs/updatewcs/utils.py | |
parent | 89520f1266d608c19fff290b548b8d972fd52808 (diff) | |
parent | 9ef9a057f9077d4e3abad4f34eee3e95f64d18ce (diff) | |
download | stwcs_hcf-16a5b8a6e9a1f76f5a678852033442c7eef952a0.tar.gz |
Merge pull request #3 from nden/drizzlepac-tests
Fix a problem with removing Lookup table distortions.
Diffstat (limited to 'lib/stwcs/updatewcs/utils.py')
-rw-r--r-- | lib/stwcs/updatewcs/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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() |