X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=monitor%2Futil%2Fcommand.py;h=e3e81ca9bdc120dada6a7caab264d8dd9f9b9b81;hb=58169a282f00178a05413752d07a63553f3374b1;hp=da7ddae57b761cca1458ce1ca9cb7076eecf3fb0;hpb=3d05a7e5452d9cafe6411532c809f8cfcce610c2;p=monitor.git diff --git a/monitor/util/command.py b/monitor/util/command.py index da7ddae..e3e81ca 100644 --- a/monitor/util/command.py +++ b/monitor/util/command.py @@ -37,6 +37,9 @@ class CMD: except ExceptionTimeout: print traceback.print_exc() return ("", "SCRIPTTIMEOUT") + except: + from monitor.common import email_exception + email_exception() def system(self, cmd, timeout=COMMAND_TIMEOUT*2): (o,e) = self.run(cmd, timeout)