Index: sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
=================================================================== |
--- a/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
+++ b/sitescripts/subscriptions/bin/updateMalwareDomainsList.py |
@@ -44,11 +44,11 @@ if __name__ == '__main__': |
for line in str(zip.read(info.filename)).splitlines(): |
if not line: |
continue |
print >>file, '||%s^' % line.strip().decode('iso-8859-1') |
file.close(); |
if subprocess.check_output(['hg', 'stat', '-R', tempdir]) != '': |
subprocess.check_call(['hg', '-q', 'commit', '-R', tempdir, '-A', '-u', 'hgbot', '-m', 'Updated malwaredomains.com data']) |
- subprocess.call(['hg', '-q', 'push', '-R', tempdir]) |
+ subprocess.check_call(['hg', '-q', 'push', '-R', tempdir]) |
finally: |
shutil.rmtree(tempdir, ignore_errors=True) |