mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-31 10:01:53 +08:00
refactoring
This commit is contained in:
@@ -119,9 +119,9 @@ class RedfishApi:
|
|||||||
variants=set(self.__actions),
|
variants=set(self.__actions),
|
||||||
lower=False,
|
lower=False,
|
||||||
)
|
)
|
||||||
except Exception as err:
|
except ValidatorError:
|
||||||
if isinstance(err, ValidatorError):
|
raise
|
||||||
raise
|
except Exception:
|
||||||
raise HttpError("Missing Redfish ResetType", 400)
|
raise HttpError("Missing Redfish ResetType", 400)
|
||||||
await self.__actions[action](False)
|
await self.__actions[action](False)
|
||||||
return Response(body=None, status=204)
|
return Response(body=None, status=204)
|
||||||
|
|||||||
Reference in New Issue
Block a user