[antimatter] catch KeyboardInterrupt

This commit is contained in:
Fabio Erculiani
2012-12-16 19:16:51 +01:00
parent 1f756bba07
commit c2ebf35c6c
+6 -2
View File
@@ -406,7 +406,11 @@ if __name__ == "__main__":
print_error("Error, invalid regexp: %s" % (err,))
raise SystemExit(1)
antimatter = AntiMatter(nsargs)
antimatter.scan().notify()
try:
antimatter = AntiMatter(nsargs)
antimatter.scan().notify()
except KeyboardInterrupt:
print_error("Interrupted.")
raise SystemExit(1)
raise SystemExit(0)