examples: python: print into stderr
https://mail.gnome.org/archives/networkmanager-list/2015-March/msg00024.html Signed-off-by: Petr Vorel <petr.vorel@gmail.com>
This commit is contained in:

committed by
Thomas Haller

parent
2171084378
commit
4213c17b44
@@ -106,7 +106,7 @@ def activate_connection(connection_path, device_path):
|
||||
sys.exit(0)
|
||||
|
||||
def error_handler(*args):
|
||||
print "Error activating device: %s" % args
|
||||
sys.stderr.write("Error activating device: %s\n" % args)
|
||||
sys.exit(1)
|
||||
|
||||
bus = dbus.SystemBus()
|
||||
|
Reference in New Issue
Block a user