Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Sleeping for 3.5 seconds, 2019-08-07 15:38:47
- WARNING: API error failed-save: The save has failed.
- ---------------------------------------------------------------------------
- APIError Traceback (most recent call last)
- /srv/paws/pwb/pywikibot/page.py in handle(func, self, *args, **kwargs)
- 106 try:
- --> 107 func(self, *args, **kwargs)
- 108 # TODO: other "expected" error types to catch?
- /srv/paws/pwb/pywikibot/page.py in editEntity(self, data, **kwargs)
- 4216 updates = self.repo.editEntity(self._defined_by(singular=True), data,
- -> 4217 baserevid=baserevid, **kwargs)
- 4218 self.latest_revision_id = updates['entity']['lastrevid']
- /srv/paws/pwb/pywikibot/site.py in callee(self, *args, **kwargs)
- 1319 raise Exception('Not implemented')
- -> 1320 return fn(self, *args, **kwargs)
- 1321
- /srv/paws/pwb/pywikibot/site.py in editEntity(self, identification, data, bot, **kwargs)
- 7838 req = self._simple_request(**params)
- -> 7839 data = req.submit()
- 7840 return data
- /srv/paws/pwb/pywikibot/data/api.py in submit(self)
- 2078
- -> 2079 raise APIError(**result['error'])
- 2080 except TypeError:
- APIError: failed-save: The save has failed. [help:See https://test.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
- During handling of the above exception, another exception occurred:
- OtherPageSaveError Traceback (most recent call last)
- <ipython-input-1-3208393d57db> in <module>
- 9 print(sitedict)
- 10
- ---> 11 item.setSitelink(sitedict, summary=u'Setting sitelink.')
- /srv/paws/pwb/pywikibot/page.py in setSitelink(self, sitelink, **kwargs)
- 4577 or a {'site':dbname,'title':title} dictionary.
- 4578 """
- -> 4579 self.setSitelinks([sitelink], **kwargs)
- 4580
- 4581 def removeSitelink(self, site, **kwargs):
- /srv/paws/pwb/pywikibot/page.py in setSitelinks(self, sitelinks, **kwargs)
- 4618 data[db_name] = obj
- 4619 data = {'sitelinks': data}
- -> 4620 self.editEntity(data, **kwargs)
- 4621
- 4622 def mergeInto(self, item, **kwargs):
- /srv/paws/pwb/pywikibot/page.py in wrapper(self, *args, **kwargs)
- 126 pywikibot.async_request(handle, func, self, *args, **kwargs)
- 127 else:
- --> 128 handle(func, self, *args, **kwargs)
- 129
- 130 manage_wrapping(wrapper, func)
- /srv/paws/pwb/pywikibot/page.py in handle(func, self, *args, **kwargs)
- 118 if isinstance(err, pywikibot.PageSaveRelatedError):
- 119 raise err
- --> 120 raise pywikibot.OtherPageSaveError(self, err)
- 121 if callback:
- 122 callback(self, err)
- OtherPageSaveError: Edit to page [[test:Q210194]] failed:
- failed-save: The save has failed. [help:See https://test.wikidata.org/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce> for notice of API deprecations and breaking changes.]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement