mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2025-12-13 01:30:31 +08:00
refactoring
This commit is contained in:
parent
365f06a2e8
commit
c38d9df5f2
@ -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)
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user