diff options
author | Nicolas Hennion <nicolas@nicolargo.com> | 2013-08-08 21:48:54 +0200 |
---|---|---|
committer | Nicolas Hennion <nicolas@nicolargo.com> | 2013-08-08 21:48:54 +0200 |
commit | 9c7faedcc3160e85b6a7a74cad7722df33514e93 (patch) | |
tree | 0f8fd7f2242ead5abbaa377b4ad1a1f37e24d8e2 | |
parent | 2c8a6dbe34af749b4201ed2f95b37d3ac0e31413 (diff) |
Another catch for the monitored command
-rw-r--r-- | glances/glances.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/glances/glances.py b/glances/glances.py index c66fde9c..a6bc37d6 100644 --- a/glances/glances.py +++ b/glances/glances.py @@ -19,7 +19,7 @@ # along with this program. If not, see <http://www.gnu.org/licenses/>. __appname__ = 'glances' -__version__ = "1.7RC2" +__version__ = "1.7RC3" __author__ = "Nicolas Hennion <nicolas@nicolargo.com>" __licence__ = "LGPL" @@ -3102,6 +3102,8 @@ class glancesScreen: cmdret = subprocess.check_output(monitors.command(item), shell = True) except subprocess.CalledProcessError: cmdret = _("Error: ") + monitors.command(item) + except: + cmdret = _("Can not execute command") monitormsg2 = "{0}".format(cmdret) self.term_window.addnstr(monitor_y, self.process_x + 35, monitormsg2, screen_x - process_x - 35) |