print errors/warnings in sys.stderr
This commit is contained in:
parent
bceb6ad19e
commit
22f1026f3a
|
@ -43,7 +43,7 @@ except ImportError:
|
||||||
import DNS # http://pydns.sf.net/
|
import DNS # http://pydns.sf.net/
|
||||||
HAVE_PYDNS = True
|
HAVE_PYDNS = True
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print "Could not load one of the supported DNS libraries (dnspython or pydns). SRV records will not be queried and you may need to set custom hostname/port for some servers to be accessible."
|
print >> sys.stderr, "Could not load one of the supported DNS libraries (dnspython or pydns). SRV records will not be queried and you may need to set custom hostname/port for some servers to be accessible."
|
||||||
|
|
||||||
DATA_RECEIVED='DATA RECEIVED'
|
DATA_RECEIVED='DATA RECEIVED'
|
||||||
DATA_SENT='DATA SENT'
|
DATA_SENT='DATA SENT'
|
||||||
|
@ -92,7 +92,7 @@ class TCPsocket(PlugIn):
|
||||||
port = int(port)
|
port = int(port)
|
||||||
break
|
break
|
||||||
except:
|
except:
|
||||||
print 'An error occurred while looking up %s' % query
|
print >> sys.stderr, 'An error occurred while looking up %s' % query
|
||||||
server = (host, port)
|
server = (host, port)
|
||||||
# end of SRV resolver
|
# end of SRV resolver
|
||||||
|
|
||||||
|
|
|
@ -32,7 +32,7 @@ try:
|
||||||
import gtk
|
import gtk
|
||||||
except RuntimeError, msg:
|
except RuntimeError, msg:
|
||||||
if str(msg) == 'could not open display':
|
if str(msg) == 'could not open display':
|
||||||
print 'Gajim needs Xserver to run. Exiting...'
|
print >> sys.stderr, _('Gajim needs Xserver to run. Quiting...')
|
||||||
sys.exit()
|
sys.exit()
|
||||||
|
|
||||||
import gobject
|
import gobject
|
||||||
|
@ -1208,7 +1208,7 @@ if __name__ == '__main__':
|
||||||
try:
|
try:
|
||||||
import gnome.ui
|
import gnome.ui
|
||||||
except ImportError:
|
except ImportError:
|
||||||
print >> sys.stderr, _('session management not available (missing gnome.ui module)')
|
print >> sys.stderr, _('Session Management support not available (missing gnome.ui module)')
|
||||||
else:
|
else:
|
||||||
def die_cb(cli):
|
def die_cb(cli):
|
||||||
gtk.main_quit()
|
gtk.main_quit()
|
||||||
|
|
Loading…
Reference in New Issue