summaryrefslogtreecommitdiffstats
path: root/bin/html
diff options
context:
space:
mode:
Diffstat (limited to 'bin/html')
-rw-r--r--bin/html11
1 files changed, 10 insertions, 1 deletions
diff --git a/bin/html b/bin/html
index 6c545e5..c12b9bc 100644
--- a/bin/html
+++ b/bin/html
@@ -36,7 +36,16 @@ def fok(f):
def files():
- return os.scandir('md/news')
+ files = os.scandir('md/news')
+
+ fs = []
+ for f in files:
+ if not fok(f):
+ print('Ignoring {}'.format(f.path))
+ else:
+ fs.append(f)
+
+ return fs
def read(f):