From d7697881dbd82dd17472f06d9d1b1861086175c3 Mon Sep 17 00:00:00 2001 From: Christian Pointner Date: Tue, 25 May 2021 21:11:32 +0200 Subject: syncoid/autosuspend: fix exception handling --- roles/storage/zfs/syncoid/templates/autosuspend.py.j2 | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'roles/storage') diff --git a/roles/storage/zfs/syncoid/templates/autosuspend.py.j2 b/roles/storage/zfs/syncoid/templates/autosuspend.py.j2 index b783f7a2..a9f3f646 100644 --- a/roles/storage/zfs/syncoid/templates/autosuspend.py.j2 +++ b/roles/storage/zfs/syncoid/templates/autosuspend.py.j2 @@ -92,7 +92,7 @@ class AutoSuspender(object): return try: manager.Suspend(False) - except dbus.exceptions.DBusException: + except dbus.exceptions.DBusException as error: print("ERR: %s" % error) -- cgit v1.2.3