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