Skip to content

Commit

Permalink
Merge pull request #857 from launchableinc/session-error-check
Browse files Browse the repository at this point in the history
Error check improvement
  • Loading branch information
kohsuke committed May 14, 2024
2 parents f11683f + c5a08f7 commit 83e5cc7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion launchable/commands/helper.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@

from ..app import Application
from ..utils.launchable_client import LaunchableClient
from ..utils.session import read_build, read_session
from ..utils.session import parse_session, read_build, read_session


def require_session(
Expand All @@ -20,6 +20,7 @@ def require_session(
See https://github.com/launchableinc/cli/pull/342
"""
if session:
parse_session(session) # make sure session is in the right format
return session

session = read_session(require_build())
Expand Down

0 comments on commit 83e5cc7

Please sign in to comment.