summaryrefslogtreecommitdiff
path: root/wcsutil/__init__.py
diff options
context:
space:
mode:
authordencheva <dencheva@stsci.edu>2008-12-16 12:32:17 -0500
committerdencheva <dencheva@stsci.edu>2008-12-16 12:32:17 -0500
commit4d45636b0d7f6921d9f32258d35c4a0718c9767e (patch)
treee36000d181be76d89e5a55a2bf4280e12f0cc1af /wcsutil/__init__.py
parent56b509af2d9d64e50d412cc0a033f3df0fa57814 (diff)
downloadstwcs_hcf-4d45636b0d7f6921d9f32258d35c4a0718c9767e.tar.gz
Fixed bugs
git-svn-id: http://svn.stsci.edu/svn/ssb/stsci_python/development/trunk/hstwcs@7384 fe389314-cf27-0410-b35b-8c050e845b92
Diffstat (limited to 'wcsutil/__init__.py')
-rw-r--r--wcsutil/__init__.py7
1 files changed, 4 insertions, 3 deletions
diff --git a/wcsutil/__init__.py b/wcsutil/__init__.py
index c43f86e..e406a9a 100644
--- a/wcsutil/__init__.py
+++ b/wcsutil/__init__.py
@@ -100,7 +100,8 @@ class HSTWCS(WCS):
self.dec_targ = primhdr.get('DEC_TARG', None)
self.filename = primhdr.get('FILENAME', "")
self.detector = primhdr.get('DETECTOR', None)
-
+
+
def readIDCCoeffs(self, header):
"""
Reads in first order IDCTAB coefficients if present in the header
@@ -123,9 +124,9 @@ class HSTWCS(WCS):
# Some of the instrument's attributes are recorded in the primary header and
# were already set, (e.g. 'DETECTOR'), the code below is a check for that case.
if not self.__getattribute__(key):
- print '%s object has no attribute %s' % (insobj.__class__.__name__, key)
- else:
raise
+ else:
+ pass
else:
raise KeyError, "Unsupported instrument - %s" %self.instrument