summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--kvmd/apps/kvmd/api/redfish.py6
1 files changed, 3 insertions, 3 deletions
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)