XZise added a comment.
Maybe @Ricordisamoa with T78393: Load token types needed for each API module from the API <https://phabricator.wikimedia.org/T78393> can help there. When a badtoken error happens their patch can determine which tokens need to be invalidated. As long as https://phabricator.wikimedia.org/T78393 is not fixed the handler could just invalidate all tokens or it could invalidate all tokens which appear as values in the parameters (which would work as good as the patch for https://phabricator.wikimedia.org/T78393).
TASK DETAIL
https://phabricator.wikimedia.org/T61678
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: XZise
Cc: Rubin16, PhantomTech, Aklapper, Twp, NiharikaKohli, XZise, Sitic, Qgil, Daniel_Mietchen, jayvdb, valhallasw, Ricordisamoa, 555, Multichill, Ladsgroup, pywikipedia-bugs
jayvdb created this task.
jayvdb assigned this task to Ladsgroup.
jayvdb added a subscriber: jayvdb.
jayvdb added a project: Pywikibot-General.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
The source code for the nightlies generator needs to be documented. E.g. where is the repo?
TASK DETAIL
https://phabricator.wikimedia.org/T95086
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Ladsgroup, jayvdb
Cc: pywikipedia-bugs, jayvdb, Aklapper
Nemo_bis created this task.
Nemo_bis added a subscriber: Nemo_bis.
Nemo_bis added a project: Pywikibot-Wikidata.
Restricted Application added subscribers: Aklapper, pywikipedia-bugs.
TASK DESCRIPTION
When I do something like
```
item = ItemPage(self.repo, '-1')
item.editLabels({uselang: title})
item.addClaim(claim, bot=True)
```
(just assume the variables are defined, see https://gerrit.wikimedia.org/r/#/c/166629/14 for context), I get:
```
site.py", line 5629, in addClaim
if claims in item and claim.getID() in item.claims:
NameError: global name 'claims' is not defined
<type 'exceptions.NameError'>
```
Shouldn't that if check for existence of "item.claims"?
TASK DETAIL
https://phabricator.wikimedia.org/T94848
REPLY HANDLER ACTIONS
Reply to comment or attach files, or !close, !claim, !unsubscribe or !assign <username>.
EMAIL PREFERENCES
https://phabricator.wikimedia.org/settings/panel/emailpreferences/
To: Nemo_bis
Cc: pywikipedia-bugs, Nemo_bis, Aklapper