From: Ian Weller Date: Tue, 22 Dec 2009 01:06:01 +0000 (-0600) Subject: Merge branch 'master' of github.com:ianweller/mw X-Git-Url: https://projects.mako.cc/source/mw/commitdiff_plain/a58c94092d906cad0611dda3b0fc2b18501b0299?hp=856c67a6f2c8a618e94bf0c72af70e7d65bd10c4 Merge branch 'master' of github.com:ianweller/mw --- diff --git a/src/mw/clicommands.py b/src/mw/clicommands.py index f1b0ce8..c12663c 100644 --- a/src/mw/clicommands.py +++ b/src/mw/clicommands.py @@ -91,6 +91,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'],