1
0
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:
2015-02-06 15:27:11 +01:00
committed by urlbot
parent 6858df0491
commit 0030b75e1d

View File

@@ -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" }