提交 9c7faedc 编写于 作者: N Nicolas Hennion

Another catch for the monitored command

上级 2c8a6dbe
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册