Merge pull request #39 from initbar/master

fix incorrect file closing
This commit is contained in:
laramies 2016-03-10 23:06:35 +00:00
commit ec7f8beea9

View file

@ -430,7 +430,8 @@ def start(argv):
for x in vhost:
file.write('<vhost>' + x + '</vhost>')
file.write('</theHarvester>')
file.close
file.flush()
file.close()
print "Files saved!"
except Exception as er:
print "Error saving XML file: " + er