better pygtk failure code
This commit is contained in:
parent
228f6dc6be
commit
c740177956
|
@ -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':
|
||||
|
|
Loading…
Reference in New Issue