mirror of
https://github.com/Mikaela/Limnoria.git
synced 2024-12-24 11:42:52 +01:00
Web: Fix use of %S converter.
This commit is contained in:
parent
3265d84a23
commit
6ed15bafe4
@ -154,7 +154,7 @@ class Web(callbacks.PluginRegexp):
|
|||||||
try:
|
try:
|
||||||
try:
|
try:
|
||||||
size = fd.headers['Content-Length']
|
size = fd.headers['Content-Length']
|
||||||
irc.reply(format(_('%u is %S long.'), url, size))
|
irc.reply(format(_('%u is %S long.'), url, int(size)))
|
||||||
except KeyError:
|
except KeyError:
|
||||||
size = conf.supybot.protocols.http.peekSize()
|
size = conf.supybot.protocols.http.peekSize()
|
||||||
s = fd.read(size)
|
s = fd.read(size)
|
||||||
|
Loading…
Reference in New Issue
Block a user