From dc070c60f0d9124ad8ef4c04cd04d96bb5b9a23f Mon Sep 17 00:00:00 2001 From: dencheva Date: Fri, 22 May 2015 14:49:26 +0000 Subject: Reverting r40221 - unintentionally checked in these changes. git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/stwcs/trunk@40327 fe389314-cf27-0410-b35b-8c050e845b92 --- lib/stwcs/wcsutil/altwcs.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/stwcs/wcsutil/altwcs.py') diff --git a/lib/stwcs/wcsutil/altwcs.py b/lib/stwcs/wcsutil/altwcs.py index 4e11890..293f22d 100644 --- a/lib/stwcs/wcsutil/altwcs.py +++ b/lib/stwcs/wcsutil/altwcs.py @@ -327,7 +327,7 @@ def deleteWCS(fname, ext, wcskey=" ", wcsname=" "): return wcskeyext = ext[0] - print('wcskeyext', wcskeyext, ext) + if not wcskeys and not wcsname: raise KeyError("Either wcskey or wcsname should be specified") -- cgit