From 171d6d5b6bc79231a24eed3ea76ada912ace5a46 Mon Sep 17 00:00:00 2001 From: nicolargo Date: Tue, 14 Feb 2012 13:25:57 +0100 Subject: [PATCH] Add control/msg to lib import --- src/glances.py | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/src/glances.py b/src/glances.py index 7164b2be..c2695736 100755 --- a/src/glances.py +++ b/src/glances.py @@ -24,24 +24,27 @@ from __future__ import generators +import sys + try: import os import platform import getopt - import sys import signal import time import datetime import multiprocessing import gettext -except KeyboardInterrupt: - pass +except: + print "Error during Python libraries import:", sys.exc_info()[1] + sys.exit(1) + # Application informations #========================= application = 'glances' -__version__ = "1.4b5" +__version__ = "1.4b6" gettext.install(application) # Test methods