better pygtk failure code
This commit is contained in:
parent
228f6dc6be
commit
c740177956
|
@ -137,6 +137,8 @@ try:
|
||||||
except Warning, msg:
|
except Warning, msg:
|
||||||
if str(msg) == 'could not open display':
|
if str(msg) == 'could not open display':
|
||||||
print >> sys.stderr, _('Gajim needs X server to run. Quiting...')
|
print >> sys.stderr, _('Gajim needs X server to run. Quiting...')
|
||||||
|
else:
|
||||||
|
print >> sys.stderr, _('importing PyGTK failed: %s') % str(msg)
|
||||||
sys.exit()
|
sys.exit()
|
||||||
warnings.resetwarnings()
|
warnings.resetwarnings()
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue