From 904c207469db078acce8c27b741d80b93f02ac42 Mon Sep 17 00:00:00 2001 From: sienkiew Date: Mon, 12 Sep 2011 14:43:25 +0000 Subject: 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 --- lib/stwcs/wcsutil/headerlet.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs') 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 -- cgit