Fix never-ending import in Blocklist on Windows

This commit is contained in:
Andrew Resch 2008-12-26 22:45:43 +00:00
parent 5cdd1146d1
commit f5a6736617
1 changed files with 1 additions and 0 deletions

View File

@ -179,6 +179,7 @@ class Core(CorePluginBase):
self.core.block_ip_range(ips) self.core.block_ip_range(ips)
self.num_blocked += 1 self.num_blocked += 1
ips = read_list.next() ips = read_list.next()
read_list.close()
except Exception, e: except Exception, e:
log.debug("Exception during import: %s", e) log.debug("Exception during import: %s", e)
else: else: