mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-11-20 01:19:26 +01:00
Merge pull request #1304 from tatokis/testing
Fix exception raised due to lack of Content-Type on the Web plugin.
This commit is contained in:
commit
a870d02a27
@ -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