Quellcode durchsuchen

Use the same except clause in signal() as in kill()

Mike Naberezny vor 10 Jahren
Ursprung
Commit
2e1b98319f
1 geänderte Dateien mit 1 neuen und 3 gelöschten Zeilen
  1. 1 3
      supervisor/process.py

+ 1 - 3
supervisor/process.py

@@ -463,7 +463,7 @@ class Subprocess:
 
         try:
             options.kill(self.pid, sig)
-        except Exception:
+        except:
             io = StringIO.StringIO()
             traceback.print_exc(file=io)
             tb = io.getvalue()
@@ -476,8 +476,6 @@ class Subprocess:
 
         return None
 
-
-
     def finish(self, pid, sts):
         """ The process was reaped and we need to report and manage its state
         """