Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
9 changes: 6 additions & 3 deletions safety/scan/render.py
Original file line number Diff line number Diff line change
Expand Up @@ -399,9 +399,12 @@ def print_wait_policy_download(
try:
f, kwargs = closure
policy = f(**kwargs)
except Exception as e:
LOG.exception(f"Policy download failed, reason: {e}")
console.print("Not using cloud policy file.")
except Exception:
LOG.exception("Failed to download policy from Safety Platform.")
console.print(
"[yellow]Unable to download cloud policy from Safety Platform. "
"Continuing the scan without cloud policy configuration.[/yellow]"
)

if policy:
wait_msg = "Policy fetched from Safety Platform."
Expand Down