summaryrefslogtreecommitdiff
diff options
authorJonathan Cave <jonathan.cave@canonical.com>2019-11-07 17:25:08 +0000
committerJonathan Cave <jonathan.cave@canonical.com>2019-11-08 09:26:16 +0000
commit398a3e02703b81a1e70699c072ed8cf7bef55f71 (patch)
treee88906df7281a659f372a13f803dfbd004d0d206
parent93393f1e53d95e58deae0eda4bdbc08e2884a22b (diff)
wifi_nmcli_test: always clean up connections
A recent change broke the expected behaviour that connections would be cleaned up and the end of the test. I don't think is much need to catch any exceptions any more so removing the try block
-rwxr-xr-xbin/wifi_nmcli_test.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bin/wifi_nmcli_test.py b/bin/wifi_nmcli_test.py
index 5e5cb6ec..71f01c90 100755
--- a/bin/wifi_nmcli_test.py
+++ b/bin/wifi_nmcli_test.py
@@ -221,7 +221,7 @@ if __name__ == '__main__':
if args.func:
try:
result = args.func(args)
- except:
+ finally:
cleanup_nm_connections()
# The test is not required to run as root, but root access is required for