mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-11 20:52:42 +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()
|
||||
if len(pgpkeys) == 0:
|
||||
irc.reply(msg, 'No results found for %s.' % search)
|
||||
fd.close()
|
||||
else:
|
||||
irc.reply(msg, 'Matches found for %s: %s' % (search, pgpkeys[:-4]))
|
||||
fd.close()
|
||||
fd.close()
|
||||
|
||||
Class = Http
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user