Commit 5757f0c4 authored by Poul-Henning Kamp's avatar Poul-Henning Kamp

Skip JSON files we cannot read.

parent 672f4ad4
......@@ -121,8 +121,11 @@ class vmod(object):
def load_all():
vmods = {}
for fn in glob.glob("vmod_*.json"):
print(fn)
v = vmod(fn)
try:
v = vmod(fn)
except:
print("ERROR: couldn't load " + fn)
continue
vmods[v.name()] = v
return vmods
......
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