From 354c99daa69a8cc4eff3b081ec2c0cdce9df102c Mon Sep 17 00:00:00 2001 From: bsimon Date: Mon, 4 May 2015 18:30:51 +0000 Subject: 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 --- lib/stwcs/wcsutil/getinput.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/wcsutil/getinput.py') 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): -- cgit