diff options
author | sienkiew <sienkiew@stsci.edu> | 2011-09-12 10:43:25 -0400 |
---|---|---|
committer | sienkiew <sienkiew@stsci.edu> | 2011-09-12 10:43:25 -0400 |
commit | 904c207469db078acce8c27b741d80b93f02ac42 (patch) | |
tree | 75d1b3d968a7f08e5d1f5eebd65a7aed12ef608c | |
parent | 54b74ac1c4e0f6690ddc6a65ceca141ad232c273 (diff) | |
download | stwcs_hcf-904c207469db078acce8c27b741d80b93f02ac42.tar.gz |
python 2.5 compatibility (no "as" in exception)
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13782 fe389314-cf27-0410-b35b-8c050e845b92
-rw-r--r-- | lib/stwcs/wcsutil/headerlet.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/stwcs/wcsutil/headerlet.py b/lib/stwcs/wcsutil/headerlet.py index 838499e..20fc86f 100644 --- a/lib/stwcs/wcsutil/headerlet.py +++ b/lib/stwcs/wcsutil/headerlet.py @@ -239,7 +239,7 @@ def create_headerlet(fname, sciext=None, hdrname=None, destim=None, wcskey=" ", except KeyError: try: hdrname = fobj[1].header['WCSNAME'] - except KeyError as detail: + except KeyError, detail: message = "Required keyword 'HDRNAME' not given" module_logger.critical(message) print message, detail |