bukkit@fbivan:~/core$ python3 pwb.py protect ''-cat'' Please enter the category name: Protect or else Enter a reason for the protection change: etst >>> Stupidity Inc. <<< Do you want to change the protection level of [[en:Stupidity Inc.]]? ([y]es, [N]o, [a]ll, [q]uit): y ERROR: An error occurred for uri https://memipedia.ga/w/api.php?titles=Stupidity+Inc.&inprop=protection&prop=info%7Cproofread&action=query&indexpageids=&continue=&meta=userinfo&uiprop=blockinfo%7Chasmsg&maxlag=5&format=json ERROR: Traceback (most recent call last): File "/home/bukkit/core/pywikibot/data/api.py", line 1486, in _http_request response = http.request(self.site, uri=uri, File "/home/bukkit/core/pywikibot/tools/_deprecate.py", line 404, in wrapper return obj(*__args, **__kw) File "/home/bukkit/core/pywikibot/comms/http.py", line 263, in request r = fetch(baseuri, headers=headers, **kwargs) File "/home/bukkit/core/pywikibot/tools/_deprecate.py", line 404, in wrapper return obj(*__args, **__kw) File "/home/bukkit/core/pywikibot/comms/http.py", line 425, in fetch callback(response) File "/home/bukkit/core/pywikibot/comms/http.py", line 308, in error_handling_callback raise response from None File "/home/bukkit/core/pywikibot/comms/http.py", line 416, in fetch response = session.request(method, uri, File "/usr/lib/python3/dist-packages/requests/sessions.py", line 542, in request resp = self.send(prep, **send_kwargs) File "/usr/lib/python3/dist-packages/requests/sessions.py", line 655, in send r = adapter.send(request, **kwargs) File "/usr/lib/python3/dist-packages/requests/adapters.py", line 498, in send raise ConnectionError(err, request=request) requests.exceptions.ConnectionError: ('Connection aborted.', RemoteDisconnected('Remote end closed connection without response')) WARNING: Waiting 5.0 seconds before retrying. WARNING: API error toofewexpiries: 0 expiry timestamps were provided where 2 were needed. 0 pages read 0 pages written 0 pages skipped Execution time: 10 seconds Script terminated by exception: ERROR: APIError: toofewexpiries: 0 expiry timestamps were provided where 2 were needed. [help: See https://memipedia.ga/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.] Traceback (most recent call last): File "/home/bukkit/core/pwb.py", line 420, in if not main(): File "/home/bukkit/core/pwb.py", line 412, in main run_python_file(filename, File "/home/bukkit/core/pwb.py", line 112, in run_python_file exec(compile(source, filename, 'exec', dont_inherit=True), File "./scripts/protect.py", line 242, in main() File "./scripts/protect.py", line 236, in main bot.run() File "/home/bukkit/core/pywikibot/bot.py", line 1600, in run self.treat(page) File "/home/bukkit/core/pywikibot/bot.py", line 1855, in treat self.treat_page() File "./scripts/protect.py", line 105, in treat_page self.current_page.protect(reason=self.opt.summary, File "/home/bukkit/core/pywikibot/page/__init__.py", line 1928, in protect self.site.protect(self, protections, reason, **kwargs) File "/home/bukkit/core/pywikibot/site/_decorators.py", line 92, in callee return fn(self, *args, **kwargs) File "/home/bukkit/core/pywikibot/tools/_deprecate.py", line 404, in wrapper return obj(*__args, **__kw) File "/home/bukkit/core/pywikibot/site/_apisite.py", line 2290, in protect result = req.submit() File "/home/bukkit/core/pywikibot/data/api.py", line 1868, in submit raise pywikibot.exceptions.APIError(**result['error']) pywikibot.exceptions.APIError: toofewexpiries: 0 expiry timestamps were provided where 2 were needed. [help: See https://memipedia.ga/w/api.php for API usage. Subscribe to the mediawiki-api-announce mailing list at <https://lists.wikimedia.org/postorius/lists/mediawiki-api-announce.lists.wikimedia.org/> for notice of API deprecations and breaking changes.] CRITICAL: Exiting due to uncaught exception bukkit@fbivan:~/core$