diff options
author | bsimon <bsimon@stsci.edu> | 2015-05-04 14:30:51 -0400 |
---|---|---|
committer | bsimon <bsimon@stsci.edu> | 2015-05-04 14:30:51 -0400 |
commit | 354c99daa69a8cc4eff3b081ec2c0cdce9df102c (patch) | |
tree | 16cd6d316dc1892952726e6aa5eb5abbad94ce5d /lib/stwcs/wcsutil/getinput.py | |
parent | a750294506fb6270c44b791928ab8d5630a22ca2 (diff) | |
download | stwcs_hcf-354c99daa69a8cc4eff3b081ec2c0cdce9df102c.tar.gz |
Updated files to run under python 2 and 3
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@39775 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib/stwcs/wcsutil/getinput.py')
-rw-r--r-- | lib/stwcs/wcsutil/getinput.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stwcs/wcsutil/getinput.py b/lib/stwcs/wcsutil/getinput.py index dbd240f..8ee1123 100644 --- a/lib/stwcs/wcsutil/getinput.py +++ b/lib/stwcs/wcsutil/getinput.py @@ -24,7 +24,7 @@ def parseSingleInput(f=None, ext=None): hdr0 = phdu[0].header try: ehdr = phdu[extnum].header - except (IndexError, KeyError), e: + except (IndexError, KeyError) as e: raise e.__class__('Unable to get extension %s.' % extnum) elif isinstance(f, fits.HDUList): |