mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-02-03 08:04:07 +01:00
Web: Fix exception raised due to lack of Content-Type
This commit is contained in:
parent
bdbc79bfc6
commit
8dbf37a173
@ -279,6 +279,8 @@ class Web(callbacks.PluginRegexp):
|
||||
try:
|
||||
try:
|
||||
size = fd.headers['Content-Length']
|
||||
if size is None:
|
||||
raise KeyError('content-length')
|
||||
irc.reply(format(_('%u is %S long.'), url, int(size)))
|
||||
except KeyError:
|
||||
size = conf.supybot.protocols.http.peekSize()
|
||||
|
Loading…
Reference in New Issue
Block a user