summaryrefslogtreecommitdiff
path: root/megapixels/app
diff options
context:
space:
mode:
authorJules Laplace <julescarbon@gmail.com>2019-04-01 14:42:20 +0200
committerJules Laplace <julescarbon@gmail.com>2019-04-01 14:42:20 +0200
commit07dd05f733c8618ea8dc687f7a48a7add6f5a83b (patch)
treedbb1d14ef4297710e3558e8f3ed90c466bdd77b3 /megapixels/app
parent2d8b7dd6ea6ccb0293c8839898cf7a1246dc0eb4 (diff)
fix
Diffstat (limited to 'megapixels/app')
-rw-r--r--megapixels/app/site/loader.py5
1 files changed, 2 insertions, 3 deletions
diff --git a/megapixels/app/site/loader.py b/megapixels/app/site/loader.py
index d150942c..779f68ba 100644
--- a/megapixels/app/site/loader.py
+++ b/megapixels/app/site/loader.py
@@ -85,9 +85,8 @@ def parse_metadata(fn, sections):
metadata['meta'] = load_json(dataset_path)
if not metadata['meta']:
print("Bad metadata? {}".format(dataset_path))
- else:
- print(metadata['slug'])
- print("{} does not exist!".format(dataset_path))
+ elif 'datasets' in fn:
+ print("/!\\ {} does not exist!".format(dataset_path))
if 'meta' not in metadata or not metadata['meta']: # dude
metadata['meta'] = {}