Advertisement
Guest User

error

a guest
Aug 7th, 2019
117
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.37 KB | None | 0 0
  1. Sleeping for 3.5 seconds, 2019-08-07 15:38:47
  2. WARNING: API error failed-save: The save has failed.
  3. ---------------------------------------------------------------------------
  4. APIError Traceback (most recent call last)
  5. /srv/paws/pwb/pywikibot/page.py in handle(func, self, *args, **kwargs)
  6. 106 try:
  7. --> 107 func(self, *args, **kwargs)
  8. 108 # TODO: other "expected" error types to catch?
  9.  
  10. /srv/paws/pwb/pywikibot/page.py in editEntity(self, data, **kwargs)
  11. 4216 updates = self.repo.editEntity(self._defined_by(singular=True), data,
  12. -> 4217 baserevid=baserevid, **kwargs)
  13. 4218 self.latest_revision_id = updates['entity']['lastrevid']
  14.  
  15. /srv/paws/pwb/pywikibot/site.py in callee(self, *args, **kwargs)
  16. 1319 raise Exception('Not implemented')
  17. -> 1320 return fn(self, *args, **kwargs)
  18. 1321
  19.  
  20. /srv/paws/pwb/pywikibot/site.py in editEntity(self, identification, data, bot, **kwargs)
  21. 7838 req = self._simple_request(**params)
  22. -> 7839 data = req.submit()
  23. 7840 return data
  24.  
  25. /srv/paws/pwb/pywikibot/data/api.py in submit(self)
  26. 2078
  27. -> 2079 raise APIError(**result['error'])
  28. 2080 except TypeError:
  29.  
  30. 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.]
  31.  
  32. During handling of the above exception, another exception occurred:
  33.  
  34. OtherPageSaveError Traceback (most recent call last)
  35. <ipython-input-1-3208393d57db> in <module>
  36. 9 print(sitedict)
  37. 10
  38. ---> 11 item.setSitelink(sitedict, summary=u'Setting sitelink.')
  39.  
  40. /srv/paws/pwb/pywikibot/page.py in setSitelink(self, sitelink, **kwargs)
  41. 4577 or a {'site':dbname,'title':title} dictionary.
  42. 4578 """
  43. -> 4579 self.setSitelinks([sitelink], **kwargs)
  44. 4580
  45. 4581 def removeSitelink(self, site, **kwargs):
  46.  
  47. /srv/paws/pwb/pywikibot/page.py in setSitelinks(self, sitelinks, **kwargs)
  48. 4618 data[db_name] = obj
  49. 4619 data = {'sitelinks': data}
  50. -> 4620 self.editEntity(data, **kwargs)
  51. 4621
  52. 4622 def mergeInto(self, item, **kwargs):
  53.  
  54. /srv/paws/pwb/pywikibot/page.py in wrapper(self, *args, **kwargs)
  55. 126 pywikibot.async_request(handle, func, self, *args, **kwargs)
  56. 127 else:
  57. --> 128 handle(func, self, *args, **kwargs)
  58. 129
  59. 130 manage_wrapping(wrapper, func)
  60.  
  61. /srv/paws/pwb/pywikibot/page.py in handle(func, self, *args, **kwargs)
  62. 118 if isinstance(err, pywikibot.PageSaveRelatedError):
  63. 119 raise err
  64. --> 120 raise pywikibot.OtherPageSaveError(self, err)
  65. 121 if callback:
  66. 122 callback(self, err)
  67.  
  68. OtherPageSaveError: Edit to page [[test:Q210194]] failed:
  69. 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 &lt;https://lists.wikimedia.org/mailman/listinfo/mediawiki-api-announce&gt; for notice of API deprecations and breaking changes.]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement