https://bugzilla.wikimedia.org/show_bug.cgi?id=59678
--- Comment #3 from Maarten Dammers maarten@mdammers.nl --- Wikidata is very unstable today so I keep running into:
File "C:\pywikibot\coredev\pywikibot\data\api.py", line 458, in submit raise APIError(code, info, **result["error"]) pywikibot.data.api.APIError: badtoken: <strong>Sorry! We could not process your edit due to a loss of session data.</strong> Please try again. If it still does not work, try [[Special:UserLogout|logging out]] and logging ba ck in. <class 'pywikibot.data.api.APIError'> CRITICAL: Waiting for 1 network thread(s) to finish. Press ctrl-c to abort
Marking this as a bug. The bot shouldn't crash on this.