Directly catch exception for page missing in getXMLRevisions()

The caller cannot catch the PME exception because it doesn't know about
the title. Just log the error here.
pull/373/head
Federico Leva 4 years ago
parent aabf3ea037
commit 7289225d2c

@ -970,7 +970,11 @@ def getXMLRevisions(config={}, session=None, allpages=False):
try:
pages = prequest['query']['pages']
except KeyError:
raise PageMissingError(title, xml='')
logerror(
config=config,
text=u'Error: page inaccessible? Could not export page: %s' % (title.decode('utf-8'))
)
continue
# Be ready to iterate if there is continuation.
while True:
# Go through the data we got to build the XML.

Loading…
Cancel
Save