Mercurial > libervia-backend
comparison sat_frontends/jp/cmd_file.py @ 3068:e189ceca7e8b
jp (file/upload): fixed exception when no jid is specified
author | Goffi <goffi@goffi.org> |
---|---|
date | Fri, 08 Nov 2019 11:47:42 +0100 |
parents | fee60f17ebac |
children | e75024e41f81 |
comparison
equal
deleted
inserted
replaced
3067:e7c4d961b321 | 3068:e189ceca7e8b |
---|---|
470 if os.path.isdir(file_): | 470 if os.path.isdir(file_): |
471 self.disp(_(f"{file_!r} is a dir! Can't upload a dir")) | 471 self.disp(_(f"{file_!r} is a dir! Can't upload a dir")) |
472 self.host.quit(C.EXIT_BAD_ARG) | 472 self.host.quit(C.EXIT_BAD_ARG) |
473 | 473 |
474 if self.args.jid is None: | 474 if self.args.jid is None: |
475 self.full_dest_jid = None | 475 self.full_dest_jid = "" |
476 else: | 476 else: |
477 self.full_dest_jid = await self.host.get_full_jid(self.args.jid) | 477 self.full_dest_jid = await self.host.get_full_jid(self.args.jid) |
478 | 478 |
479 options = {} | 479 options = {} |
480 if self.args.ignore_tls_errors: | 480 if self.args.ignore_tls_errors: |