mirror of
http://aero2k.de/t/repos/urlbot-native.git
synced 2017-09-06 15:25:38 +02:00
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
|
||||
)
|
||||
}
|
||||
elif "missing" in page:
|
||||
return { 'msg': 'Article "%s" not found' % page.get("title", query) }
|
||||
else:
|
||||
return { 'msg': "Something seems wrong with the json" }
|
||||
|
||||
|
||||
Reference in New Issue
Block a user