matej_suchanek created this task.
matej_suchanek added projects: Pywikibot, Pywikibot-Wikidata, Regression.
Restricted Application added subscribers: pywikibot-bugs-list, Aklapper.
TASK DESCRIPTION
Calls to `Claim.changeTarget` (sometimes?) raise:
[...]
File "/shared/pywikipedia/core/pywikibot/page/__init__.py", line 5487, in
changeTarget
**kwargs)
File "/shared/pywikipedia/core/pywikibot/site/__init__.py", line 1340, in
callee
return fn(self, *args, **kwargs)
File "/shared/pywikipedia/core/pywikibot/site/__init__.py", line 8118, in
changeClaimTarget
params['baserevid'] = claim.on_item.latest_revision_id
AttributeError: 'NoneType' object has no attribute 'latest_revision_id'
CRITICAL: Exiting due to uncaught exception <class 'AttributeError'>
Additionally, there are some new warnings:
WARNING: /shared/pywikipedia/core/pywikibot/site/__init__.py:1340:
_NotImplementedWarning: claim without on_item set is deprecated for 4 years.
return fn(self, *args, **kwargs)
WARNING: /shared/pywikipedia/core/pywikibot/site/__init__.py:1340:
UserWarning: Neither claim.on_item nor baserevid provided
return fn(self, *args, **kwargs)
This is likely caused by
https://gerrit.wikimedia.org/r/c/pywikibot/core/+/526380 or another related
change.
TASK DETAIL
https://phabricator.wikimedia.org/T248746
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: matej_suchanek
Cc: Aklapper, matej_suchanek, pywikibot-bugs-list, Zkhalido, Viztor, Wenyi,
Jayprakash12345, Tbscho, MayS, Mdupont, JJMC89, Dvorapa, Altostratus,
Avicennasis, Wong128hk, mys_721tx, jayvdb, Ricordisamoa, Masti, Alchimista, Rxy
_______________________________________________
pywikibot-bugs mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/pywikibot-bugs