mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-11-25 12:17:31 +01:00
Make sure the urllib2 file gets closed properly in pgpkey
This commit is contained in:
parent
cc07bc1272
commit
89d5f7a088
@ -404,9 +404,10 @@ class Http(callbacks.Privmsg):
|
|||||||
line = fd.readline()
|
line = fd.readline()
|
||||||
if len(pgpkeys) == 0:
|
if len(pgpkeys) == 0:
|
||||||
irc.reply(msg, 'No results found for %s.' % search)
|
irc.reply(msg, 'No results found for %s.' % search)
|
||||||
|
fd.close()
|
||||||
else:
|
else:
|
||||||
irc.reply(msg, 'Matches found for %s: %s' % (search, pgpkeys[:-4]))
|
irc.reply(msg, 'Matches found for %s: %s' % (search, pgpkeys[:-4]))
|
||||||
fd.close()
|
fd.close()
|
||||||
|
|
||||||
Class = Http
|
Class = Http
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user