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/
|
||||
HAVE_PYDNS = True
|
||||
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_SENT='DATA SENT'
|
||||
|
@ -92,7 +92,7 @@ class TCPsocket(PlugIn):
|
|||
port = int(port)
|
||||
break
|
||||
except:
|
||||
print 'An error occurred while looking up %s' % query
|
||||
print >> sys.stderr, 'An error occurred while looking up %s' % query
|
||||
server = (host, port)
|
||||
# end of SRV resolver
|
||||
|
||||
|
|
|
@ -32,7 +32,7 @@ try:
|
|||
import gtk
|
||||
except RuntimeError, msg:
|
||||
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()
|
||||
|
||||
import gobject
|
||||
|
@ -1208,7 +1208,7 @@ if __name__ == '__main__':
|
|||
try:
|
||||
import gnome.ui
|
||||
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:
|
||||
def die_cb(cli):
|
||||
gtk.main_quit()
|
||||
|
|
Loading…
Reference in New Issue