diff options
author | Jagadeesh Kotra <jagadeesh@stdin.top> | 2021-03-16 00:48:35 +0000 |
---|---|---|
committer | Thomas Haller <thaller@redhat.com> | 2021-03-16 07:55:12 +0100 |
commit | 3df607f3c27b0ea56f3582ce50d7947c32af6697 (patch) | |
tree | 69409bd55e7f325d01513f04068726cb62eb66b7 /examples | |
parent | ec3e2561a8da369f3f6021ade462d8239b671afc (diff) | |
download | NetworkManager-3df607f3c27b0ea56f3582ce50d7947c32af6697.tar.gz |
examples: use python3 compatible exception syntax
https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/781
Diffstat (limited to 'examples')
-rwxr-xr-x | examples/python/gi/vpn-import.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/examples/python/gi/vpn-import.py b/examples/python/gi/vpn-import.py index 929dd75fcc..0db19a2587 100755 --- a/examples/python/gi/vpn-import.py +++ b/examples/python/gi/vpn-import.py @@ -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() |