examples: use python3 compatible exception syntax
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/781
This commit is contained in:

committed by
Thomas Haller

parent
ec3e2561a8
commit
3df607f3c2
@@ -55,7 +55,7 @@ def added_cb(client, result, data):
|
||||
try:
|
||||
client.add_connection_finish(result)
|
||||
print("The connection profile has been successfully added to NetworkManager.")
|
||||
except Exception, e:
|
||||
except Exception as e:
|
||||
print("ERROR: failed to add connection: %s\n" % e)
|
||||
main_loop.quit()
|
||||
|
||||
|
Reference in New Issue
Block a user