Skip to content

Commit

Permalink
add try catch around len()
Browse files Browse the repository at this point in the history
  • Loading branch information
Soeren Sonnenburg committed Apr 2, 2012
1 parent f1564b9 commit efd2da9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion testsuite/python_modular/tester.py
Expand Up @@ -81,14 +81,14 @@ def tester(tests, cmp_method, tolerance, failures, missing):
for t in tests:
try:
mod, mod_name = get_test_mod(t)
n=len(mod.parameter_list)
except TypeError:
continue
except Exception, e:
print "%-60s ERROR (%s)" % (t,e)
continue
fname = ""

n=len(mod.parameter_list)
for i in xrange(n):
fname = get_fname(mod_name, i)
setting_str = "%s setting %d/%d" % (t,i+1,n)
Expand Down

0 comments on commit efd2da9

Please sign in to comment.