From 3df607f3c27b0ea56f3582ce50d7947c32af6697 Mon Sep 17 00:00:00 2001 From: Jagadeesh Kotra Date: Tue, 16 Mar 2021 00:48:35 +0000 Subject: examples: use python3 compatible exception syntax https://gitlab.freedesktop.org/NetworkManager/NetworkManager/-/merge_requests/781 --- examples/python/gi/vpn-import.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'examples') 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() -- cgit v1.2.1