From e18144dd12e256aa89ccb17cb1da9eaf3dba39f5 Mon Sep 17 00:00:00 2001 From: Pieter Noordhuis Date: Tue, 20 Jun 2023 07:21:22 +0200 Subject: [PATCH] Catch errors and proceed if trampoline function fails --- databricks_cli/cli.py | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/databricks_cli/cli.py b/databricks_cli/cli.py index c8c95bc4..59ccd1ff 100644 --- a/databricks_cli/cli.py +++ b/databricks_cli/cli.py @@ -161,7 +161,11 @@ def e(message, highlight=False, nl=False): def main(): - _trampoline_into_new_cli() + try: + _trampoline_into_new_cli() + except Exception as e: + # Log the error and continue; perhaps a permissions issue? + click.echo("Failed to look for newer version of CLI: {}".format(e), err=True) try: rv = cli(standalone_mode=False)