X-Git-Url: https://projects.mako.cc/source/mw/blobdiff_plain/3ec21f92ccc70c2283d15506dc0384e5442deee2..dcc38e864010e822beb654f78c91c4c8aa48f48a:/src/mw/clicommands.py?ds=sidebyside diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index 7726703..b749dd8 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -92,6 +92,10 @@ class FetchCommand(CommandBase): } response = self.api.call(data)['query']['pages'] for pageid in response.keys(): + if 'missing' in response[pageid].keys(): + print '%s: %s: page does not exist, file not created' % \ + (self.me, response[pageid]['title']) + continue revid = [x['revid'] for x in response[pageid]['revisions']] self.metadir.add_page_info(int(pageid), response[pageid]['title'],