Reformatted code base using black.
This commit is contained in:
parent
56319cbad3
commit
53fdaa9d09
1 changed files with 12604 additions and 8966 deletions
|
|
@ -41,18 +41,13 @@ class Get(base.CommandBase):
|
|||
self.parser.add_argument(
|
||||
"--no-cache", action="store_true", help=_("do no use cached values")
|
||||
)
|
||||
self.parser.add_argument(
|
||||
"jid", help=_("entity to check")
|
||||
)
|
||||
self.parser.add_argument("jid", help=_("entity to check"))
|
||||
|
||||
async def start(self):
|
||||
jid_ = (await self.host.check_jids([self.args.jid]))[0]
|
||||
try:
|
||||
data = await self.host.bridge.identity_get(
|
||||
jid_,
|
||||
[],
|
||||
not self.args.no_cache,
|
||||
self.profile
|
||||
jid_, [], not self.args.no_cache, self.profile
|
||||
)
|
||||
except Exception as e:
|
||||
self.disp(f"can't get identity data: {e}", error=True)
|
||||
|
|
|
|||
Loading…
Reference in a new issue