examples: use python3 compatible exception syntax

https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/781
This commit is contained in:
Jagadeesh Kotra 2021-03-16 00:48:35 +00:00 committed by Thomas Haller
parent ec3e2561a8
commit 3df607f3c2
No known key found for this signature in database
GPG Key ID: 29C2366E4DFC5728

View File

@ -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()