progval / Supybot-plugins

Collection of plugins for Supybot/Limnoria I wrote or forked.
https://github.com/ProgVal/Limnoria/
107 stars 63 forks source link

WebDoc plugin-docs are broken (gateway error to nginx, traceback to bot) #337

Closed Mikaela closed 3 years ago

Mikaela commented 3 years ago

I can see the list of public plugins at https://limnoria.etro.mikaela.info/plugindoc/, but accessing them results into Nginx gateway error and this in the bot logs:

May 29 13:00:47 etro supybot[62080]: ERROR 2021-05-29T10:00:47 Uncaught exception in WebDocServerCallback.doGet:
May 29 13:00:47 etro supybot[62080]: Traceback (most recent call last):
May 29 13:00:47 etro supybot[62080]:   File "/home/limnoria/.local/lib/python3.9/site-packages/supybot/log.py", line 368, in m
May 29 13:00:47 etro supybot[62080]:     return f(self, *args, **kwargs)
May 29 13:00:47 etro supybot[62080]:   File "/home/limnoria/ProgVal-Supybot-plugins/WebDoc/plugin.py", line 143, in doGet
May 29 13:00:47 etro supybot[62080]:     table = ''.join(map(formatter, commands))
May 29 13:00:47 etro supybot[62080]:   File "/home/limnoria/ProgVal-Supybot-plugins/WebDoc/plugin.py", line 135, in formatter
May 29 13:00:47 etro supybot[62080]:     s = cgi.escape(s)
May 29 13:00:47 etro supybot[62080]: AttributeError: module 'cgi' has no attribute 'escape'
May 29 13:00:47 etro supybot[62080]: ERROR 2021-05-29T10:00:47 Exception id: 0xc70b9
May 29 13:00:47 etro supybot[62080]: INFO 2021-05-29T10:00:47 HTTP request: 127.0.0.1 - "GET /favicon.ico HTTP/1.0" 404 -

The current (running) version of this Limnoria is 2021.05.28, running on Python 3.9.2 (default, Feb 28 2021, 17:03:44) [GCC 10.2.1 20210110]. The newest versions available online are 2021.05.26 (in master), 2021.05.29 (in testing).

Debian GNU/Linux 11 (bullseye)