mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-10-14 12:05:03 +00:00
examples: use python3 compatible exception syntax
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/781
This commit is contained in:
parent
ec3e2561a8
commit
3df607f3c2
|
@ -55,7 +55,7 @@ def added_cb(client, result, data):
|
||||||
try:
|
try:
|
||||||
client.add_connection_finish(result)
|
client.add_connection_finish(result)
|
||||||
print("The connection profile has been successfully added to NetworkManager.")
|
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)
|
print("ERROR: failed to add connection: %s\n" % e)
|
||||||
main_loop.quit()
|
main_loop.quit()
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue