mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager
synced 2024-07-08 19:55:47 +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:
|
||||
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()
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user