Explorar el Código

Make debugging easier.

Chris McDonough hace 19 años
padre
commit
773ce9e79c
Se han modificado 1 ficheros con 2 adiciones y 1 borrados
  1. 2 1
      src/supervisor/web.py

+ 2 - 1
src/supervisor/web.py

@@ -320,7 +320,8 @@ class StatusView(MeldView):
                           ]
                         )
                     def restartprocess():
-                        if callback() is NOT_DONE_YET:
+                        result = callback()
+                        if result is NOT_DONE_YET:
                             return NOT_DONE_YET
                         return 'Process %s restarted' % processname
                     restartprocess.delay = 0.05