Commit 8bb898d2 authored by Jason Swails's avatar Jason Swails
Browse files

ValueError -> TypeError. Seems a more appropriate exception to raise.

parent df390132
......@@ -92,7 +92,7 @@ class CharmmParameterSet(object):
elif arg.endswith('.str'):
strs.append(arg)
else:
raise ValueError('Unrecognized file type: %s' % arg)
raise TypeError('Unrecognized file type: %s' % arg)
for top in tops: self.readTopologyFile(top)
for par in pars: self.readParameterFile(par)
for strf in strs: self.readStreamFile(strf)
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment