diff options
| author | sienkiew <sienkiew@stsci.edu> | 2011-09-15 09:46:28 -0400 |
|---|---|---|
| committer | sienkiew <sienkiew@stsci.edu> | 2011-09-15 09:46:28 -0400 |
| commit | bc71133df61cdfc0f0d113868655136fd8f813e7 (patch) | |
| tree | 0456350151dac848c4f544b5c899d1a6f4635a16 /lib | |
| parent | 0953b15a3f29ca0a2a071d493bc1176700e35584 (diff) | |
| download | stwcs_hcf-bc71133df61cdfc0f0d113868655136fd8f813e7.tar.gz | |
fix except..as
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@13787 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'lib')
| -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 20fc86f..a18d254 100644 --- a/lib/stwcs/wcsutil/headerlet.py +++ b/lib/stwcs/wcsutil/headerlet.py @@ -248,7 +248,7 @@ def create_headerlet(fname, sciext=None, hdrname=None, destim=None, wcskey=" ", wname = "".join(["WCSNAME",wcskey.upper()]) try: wcsname = fobj[1].header[wname] - except KeyError as detail: + except KeyError, detail: message = "Missing required keyword 'WCSNAME'." module_logger.critical(message) print message, detail |
