Skip to content

Commit 477cfcc

Browse files
committed
Fix ruff BLE001 in drift_monitor E2E project lookup
1 parent 00e4ac9 commit 477cfcc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

terradev_cli/drift_monitor/agent.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -166,7 +166,7 @@ def _fetch_e2e_project_id(self, creds: Dict[str, Any]) -> Optional[str]:
166166
project_id = body.get("data", {}).get("last_used_project")
167167
if project_id:
168168
return str(project_id)
169-
except Exception:
169+
except (requests.RequestException, json.JSONDecodeError, ValueError, AttributeError, TypeError):
170170
pass
171171
return None
172172

0 commit comments

Comments
 (0)