Skip to content

Commit

Permalink
fix sshbl
Browse files Browse the repository at this point in the history
  • Loading branch information
Rafiot committed Sep 20, 2012
1 parent 56b6137 commit 9ca167f
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions lib/modules/sshbl_base.py
Expand Up @@ -28,10 +28,9 @@ def parse(self):
if line[0] != '#':
splitted = line.split()
ip = splitted[0]
date = datetime.datetime.utcfromtimestamp(int(splitted[1]))
if len(ip) == 0:
continue
entry = self.prepare_entry(ip = ip, source = self.__class__.__name__, timestamp = date)
entry = self.prepare_entry(ip = ip, source = self.__class__.__name__, timestamp = self.date)
self.put_entry(entry)
daily.close()
self.move_file(file)

0 comments on commit 9ca167f

Please sign in to comment.