mirror of
https://github.com/mofeng-git/One-KVM.git
synced 2026-01-29 00:51:53 +08:00
refactoring
This commit is contained in:
@@ -128,7 +128,7 @@ class IpmiServer(BaseIpmiServer): # pylint: disable=too-many-instance-attribute
|
||||
method = functools.reduce(getattr, method_path.split("."), kvmd_session)
|
||||
return (await method(**kwargs))
|
||||
except (aiohttp.ClientError, asyncio.TimeoutError) as err:
|
||||
logger.error("Can't perform request %s: %s", name, str(err))
|
||||
logger.error("Can't perform request %s: %s", name, err)
|
||||
raise
|
||||
|
||||
return aiotools.run_sync(runner())
|
||||
|
||||
Reference in New Issue
Block a user