Skip to content
Permalink
Browse files

ValueError

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Sep 25, 2016
1 parent a021717 commit 9018c3716fb43d70c05e3f628fc4e601518c484c
Showing with 5 additions and 5 deletions.
  1. +5 −5 nikola/post.py
@@ -188,11 +188,11 @@ def __init__(

if 'title' not in default_metadata or 'slug' not in default_metadata \
or 'date' not in default_metadata:
raise Value("You must set a title (found '{0}'), a slug (found '{1}') and a date (found '{2}')! "
"[in file {3}]".format(default_metadata.get('title', None),
default_metadata.get('slug', None),
default_metadata.get('date', None),
source_path))
raise ValueError("You must set a title (found '{0}'), a slug (found '{1}') and a date (found '{2}')! "
"[in file {3}]".format(default_metadata.get('title', None),
default_metadata.get('slug', None),
default_metadata.get('date', None),
source_path))

if 'type' not in default_metadata:
# default value is 'text'

0 comments on commit 9018c37

Please sign in to comment.
You can’t perform that action at this time.