comparison sat_frontends/jp/base.py @ 2692:7d4679ee7ded

jp (base): fixed connection when start_session arg exists but is False
author Goffi <goffi@goffi.org>
date Sun, 18 Nov 2018 15:49:55 +0100
parents 0bed6df9ee5d
children ab37d1c7c38c
comparison
equal deleted inserted replaced
2691:1ecceac3df96 2692:7d4679ee7ded
679 return 679 return
680 elif not self.bridge.profileIsSessionStarted(self.profile): 680 elif not self.bridge.profileIsSessionStarted(self.profile):
681 if not self.args.connect: 681 if not self.args.connect:
682 log.error(_(u"Session for [{profile}] is not started, please start it before using jp, or use either --start-session or --connect option").format(profile=self.profile)) 682 log.error(_(u"Session for [{profile}] is not started, please start it before using jp, or use either --start-session or --connect option").format(profile=self.profile))
683 self.quit(1) 683 self.quit(1)
684 else: 684 elif not getattr(self.args, "connect", False):
685 callback() 685 callback()
686 return 686 return
687 687
688 688
689 if not hasattr(self.args, 'connect'): 689 if not hasattr(self.args, 'connect'):