Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Catch KeyboardInterrupt for prettier exiting

bcoles7b6baefc0256
diff --git a/sfcli.py b/sfcli.py
index 7d9a13bf..d9c95d06 100755
--- a/sfcli.py
+++ b/sfcli.py
@@ -1236,5 +1236,9 @@ if __name__ == "__main__":
except BaseException as e:
pass
- s.dprint("Type 'help' or '?'.")
- s.cmdloop()
+ try:
+ s.dprint("Type 'help' or '?'.")
+ s.cmdloop()
+ except KeyboardInterrupt:
+ print("\n")
+ sys.exit(0)