Skip to content

Commit

Permalink
Close the previously unclosed file inside import_maxmind_file.
Browse files Browse the repository at this point in the history
Signed-off-by: david <db@d1b.org>
  • Loading branch information
d1b committed Nov 9, 2015
1 parent d743338 commit 5e507f7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion blockfinder
Original file line number Diff line number Diff line change
Expand Up @@ -654,7 +654,8 @@ class DownloaderParser(object):
if not os.path.exists(maxmind_path):
print("Unable to find %s." % maxmind_path)
return
content = open(maxmind_path).read()
with open(maxmind_path, 'r') as f:
content = f.read()
self._parse_maxmind_content(content, maxmind_path, maxmind_path)
self.database_cache.commit_changes()

Expand Down

0 comments on commit 5e507f7

Please sign in to comment.