mirror of
https://github.com/Mikaela/Limnoria.git
synced 2025-01-26 20:14:20 +01:00
Make sure the urllib2 file gets closed properly in pgpkey
This commit is contained in:
parent
cc07bc1272
commit
89d5f7a088
@ -404,6 +404,7 @@ 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()
|
||||||
|
Loading…
Reference in New Issue
Block a user