From c38d9df5f2f79a87e573f8238d9f2d38222ec843 Mon Sep 17 00:00:00 2001 From: Maxim Devaev Date: Tue, 27 Jul 2021 00:34:35 +0300 Subject: refactoring --- kvmd/apps/kvmd/api/redfish.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'kvmd/apps') diff --git a/kvmd/apps/kvmd/api/redfish.py b/kvmd/apps/kvmd/api/redfish.py index 974bac4c..2b0e0c96 100644 --- a/kvmd/apps/kvmd/api/redfish.py +++ b/kvmd/apps/kvmd/api/redfish.py @@ -119,9 +119,9 @@ class RedfishApi: variants=set(self.__actions), lower=False, ) - except Exception as err: - if isinstance(err, ValidatorError): - raise + except ValidatorError: + raise + except Exception: raise HttpError("Missing Redfish ResetType", 400) await self.__actions[action](False) return Response(body=None, status=204) -- cgit v1.2.3