Browse Source

catch ctr-c from GUI

nico 8 years ago
parent
commit
5176c8e3a9
1 changed files with 4 additions and 4 deletions
  1. 4 4
      jarvis.py

+ 4 - 4
jarvis.py

@@ -1,5 +1,5 @@
 #!/usr/bin/env python
-# -*- coding: utf-8 -*-
+# coding: utf8
 import argparse
 import logging
 
@@ -17,9 +17,9 @@ logger = logging.getLogger("jarvis")
 
 
 def signal_handler(signal, frame):
-        print "\n"
-        Utils.print_info("Ctrl+C pressed. Killing Jarvis")
-        sys.exit(0)
+    print "\n"
+    Utils.print_info("Ctrl+C pressed. Killing Jarvis")
+    sys.exit(0)
 
 ACTION_LIST = ["start", "gui", "load-events"]