From 548060bb1b33b1c58344e7f83bb81c906841d860 Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 24 Sep 2010 13:58:13 +0000 Subject: Fixed a typo git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stsci_python/trunk/stwcs@10417 fe389314-cf27-0410-b35b-8c050e845b92 --- updatewcs/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'updatewcs') diff --git a/updatewcs/__init__.py b/updatewcs/__init__.py index 0dd21d4..52769ef 100644 --- a/updatewcs/__init__.py +++ b/updatewcs/__init__.py @@ -181,7 +181,7 @@ def getKeyName(hdr, wkey, wname, idcname): # if not - get the next availabble key name = wname key = wcsutil.getKeyFromName(hdr, wname) - if not wkey: + if not key: key = wcsutil.next_wcskey(hdr) else: key = wkey -- cgit