Skip to content

Commit

Permalink
runner: allow local tests without login
Browse files Browse the repository at this point in the history
  • Loading branch information
tangentstorm committed Feb 14, 2024
1 parent be5e5eb commit 76493e3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tanco/runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@


def load_config() -> Config:
kw = {'uid': TancoClient().whoami()['id']}
kw = {'uid': who['id'] if (who:=TancoClient().whoami()) else None}
if os.path.exists('.tanco'):
try:
data = json.load(open('.tanco'))
Expand Down

0 comments on commit 76493e3

Please sign in to comment.