Skip to content

Commit

Permalink
Catch errors and proceed if trampoline function fails
Browse files Browse the repository at this point in the history
  • Loading branch information
pietern committed Jun 20, 2023
1 parent 7117725 commit e18144d
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion databricks_cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit e18144d

Please sign in to comment.