diff --git a/tanco/runner.py b/tanco/runner.py index 5ef1fb8..83ed661 100644 --- a/tanco/runner.py +++ b/tanco/runner.py @@ -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'))