Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_avatar.py @ 3573:813595f88612
merge changes from main branch
author | Goffi <goffi@goffi.org> |
---|---|
date | Thu, 17 Jun 2021 13:05:58 +0200 |
parents | 04283582966f |
children | 82e616b70a2a |
comparison
equal
deleted
inserted
replaced
3541:888109774673 | 3573:813595f88612 |
---|---|
111 ) | 111 ) |
112 | 112 |
113 async def start(self): | 113 async def start(self): |
114 path = self.args.image_path | 114 path = self.args.image_path |
115 if not os.path.exists(path): | 115 if not os.path.exists(path): |
116 self.disp(_(f"file {path!r} doesn't exist!"), error=True) | 116 self.disp(_("file {path} doesn't exist!").format(path=repr(path)), error=True) |
117 self.host.quit(C.EXIT_BAD_ARG) | 117 self.host.quit(C.EXIT_BAD_ARG) |
118 path = os.path.abspath(path) | 118 path = os.path.abspath(path) |
119 try: | 119 try: |
120 await self.host.bridge.avatarSet(path, self.args.jid, self.profile) | 120 await self.host.bridge.avatarSet(path, self.args.jid, self.profile) |
121 except Exception as e: | 121 except Exception as e: |