summaryrefslogtreecommitdiff
path: root/kvmd
diff options
context:
space:
mode:
authorMaxim Devaev <[email protected]>2021-07-27 00:34:35 +0300
committerMaxim Devaev <[email protected]>2021-07-27 00:36:40 +0300
commitc38d9df5f2f79a87e573f8238d9f2d38222ec843 (patch)
tree9893f7852aa405d4871c1a5212298e318f0870da /kvmd
parent365f06a2e8ca03e3dca4f3fe9133ddac6d36f4ba (diff)
refactoring
Diffstat (limited to 'kvmd')
-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)