jp (base): fixed connection when start_session arg exists but is False

This commit is contained in:
Goffi 2018-11-18 15:49:55 +01:00
commit cee59f42ae

View file

@ -681,7 +681,7 @@ class Jp(object):
if not self.args.connect:
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))
self.quit(1)
else:
elif not getattr(self.args, "connect", False):
callback()
return