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