wp: report missing page
This commit is contained in:
@@ -573,6 +573,8 @@ def command_wp(argv,lang="de",**args):
|
|||||||
short if short.strip() else "(nix)", link
|
short if short.strip() else "(nix)", link
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
|
elif "missing" in page:
|
||||||
|
return { 'msg': 'Article "%s" not found' % page.get("title", query) }
|
||||||
else:
|
else:
|
||||||
return { 'msg': "Something seems wrong with the json" }
|
return { 'msg': "Something seems wrong with the json" }
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user