fix error handling for nonexistent pages
This commit is contained in:
parent
ed576e5e0e
commit
70f0d687f6
|
@ -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:
|
||||
|
|
Loading…
Reference in New Issue