fix error handling for nonexistent pages

This commit is contained in:
Jakub Wilk 2017-01-29 15:24:00 +01:00
parent ed576e5e0e
commit 70f0d687f6
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def main():
# Find the page # Find the page
page = site.pages[args.article_name] page = site.pages[args.article_name]
if not page.exists: if not page.exists:
p.error('Page %s does not exist' % s) p.error('Page %s does not exist' % args.article_name)
fn = sanitize(args.article_name) fn = sanitize(args.article_name)
if args.doimport: if args.doimport: