"platforms/reference/src/SimTKUtilities/SimTk.vcproj" did not exist on "76e2849ccf0aea4dd118a77e8d7d7e66b1107ab0"
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): ...@@ -92,7 +92,7 @@ class CharmmParameterSet(object):
elif arg.endswith('.str'): elif arg.endswith('.str'):
strs.append(arg) strs.append(arg)
else: else:
raise ValueError('Unrecognized file type: %s' % arg) raise TypeError('Unrecognized file type: %s' % arg)
for top in tops: self.readTopologyFile(top) for top in tops: self.readTopologyFile(top)
for par in pars: self.readParameterFile(par) for par in pars: self.readParameterFile(par)
for strf in strs: self.readStreamFile(strf) 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