summaryrefslogtreecommitdiff
path: root/numpy/lib/npyio.py
diff options
context:
space:
mode:
Diffstat (limited to 'numpy/lib/npyio.py')
-rw-r--r--numpy/lib/npyio.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/numpy/lib/npyio.py b/numpy/lib/npyio.py
index 9e6989c77..dced7fd78 100644
--- a/numpy/lib/npyio.py
+++ b/numpy/lib/npyio.py
@@ -1047,6 +1047,8 @@ def savetxt(fname, X, fmt='%.18e', delimiter=' ', newline='\n', header='',
raise error
else:
format = fmt
+ else:
+ raise ValueError('invalid fmt: %r' % (fmt,))
if len(header) > 0:
header = header.replace('\n', '\n' + comments)