Merge pull request #3 from jwilk/nonexistent-page
Fix error handling for nonexistent pages
This commit is contained in:
commit
17460602b1
|
@ -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:
|
||||||
|
|
Loading…
Reference in New Issue