add email_exception() calls throughout code.
[monitor.git] / monitor / util / command.py
index da7ddae..e3e81ca 100644 (file)
@@ -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)