Fail quietly when updating projects with broken URLs instead of logging

This commit is contained in:
Alex Cabal 2025-03-15 14:18:48 -05:00
parent ba22538659
commit ceccd1431e

View file

@ -33,17 +33,21 @@ foreach($projects as $project){
try{ try{
$project->FetchLastCommitTimestamp($apiKey); $project->FetchLastCommitTimestamp($apiKey);
} }
catch(Exceptions\AppException $ex){ catch(Exceptions\AppException $ex){
Log::WriteErrorLogEntry($ex->getMessage()); // 404, continue.
} }
if($project->IsStatusAutomaticallyUpdated){ if($project->IsStatusAutomaticallyUpdated){
// Check if this project is in review. // Check if this project is in review.
if($project->Status == Enums\ProjectStatusType::InProgress){ if($project->Status == Enums\ProjectStatusType::InProgress){
try{
$project->FetchReviewStatus(); $project->FetchReviewStatus();
} }
catch(Exceptions\AppException){
// 404, continue.
}
}
if( if(
( (