summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--wcsutil/getinput.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/wcsutil/getinput.py b/wcsutil/getinput.py
index 22ed492..a2d9781 100644
--- a/wcsutil/getinput.py
+++ b/wcsutil/getinput.py
@@ -37,6 +37,9 @@ def parseSingleInput(f=None, ext=None):
ehdr = f[extnum].header
hdr0 = f[0].header
filename = hdr0.get('FILENAME', "")
+
+ else:
+ raise ValueError('Input must be a file name string or a pyfits file object')
return filename, hdr0, ehdr, phdu