Merge pull request #3 from jwilk/nonexistent-page

Fix error handling for nonexistent pages
This commit is contained in:
Dan Lenski 2017-01-30 22:30:40 -08:00 committed by GitHub
commit 17460602b1
1 changed files with 1 additions and 1 deletions

View File

@ -68,7 +68,7 @@ def main():
# Find the page
page = site.pages[args.article_name]
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)
if args.doimport: