]> projects.mako.cc - mw/commitdiff
Merge branch 'master' of github.com:ianweller/mw
authorIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 01:06:01 +0000 (19:06 -0600)
committerIan Weller <ian@ianweller.org>
Tue, 22 Dec 2009 01:06:01 +0000 (19:06 -0600)
src/mw/clicommands.py

index f1b0ce81661afda67ab94b613944ec33f784c9b1..c12663c1e0fcca00d94ea902adf2a0e36fce348f 100644 (file)
@@ -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'],

Benjamin Mako Hill || Want to submit a patch?