Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
H
homepage
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
varnishcache
homepage
Commits
5757f0c4
Commit
5757f0c4
authored
Apr 27, 2017
by
Poul-Henning Kamp
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Skip JSON files we cannot read.
parent
672f4ad4
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
build.py
R1/source/vmods/build.py
+5
-2
No files found.
R1/source/vmods/build.py
View file @
5757f0c4
...
@@ -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
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment