From c74017795673fd519b6acff03291c922edfad7b3 Mon Sep 17 00:00:00 2001 From: Yann Leboulanger Date: Thu, 30 Jul 2009 19:21:23 +0200 Subject: [PATCH] better pygtk failure code --- src/gajim.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/gajim.py b/src/gajim.py index 5bdea09a9..3ddbce014 100644 --- a/src/gajim.py +++ b/src/gajim.py @@ -137,7 +137,9 @@ try: except Warning, msg: if str(msg) == 'could not open display': print >> sys.stderr, _('Gajim needs X server to run. Quiting...') - sys.exit() + else: + print >> sys.stderr, _('importing PyGTK failed: %s') % str(msg) + sys.exit() warnings.resetwarnings() if os.name == 'nt':