diff --git a/deluge/plugins/blocklist/blocklist/core.py b/deluge/plugins/blocklist/blocklist/core.py index c9c357c7d..ac8e47879 100644 --- a/deluge/plugins/blocklist/blocklist/core.py +++ b/deluge/plugins/blocklist/blocklist/core.py @@ -179,6 +179,7 @@ class Core(CorePluginBase): self.core.block_ip_range(ips) self.num_blocked += 1 ips = read_list.next() + read_list.close() except Exception, e: log.debug("Exception during import: %s", e) else: