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