mirror of
https://github.com/standardebooks/web.git
synced 2025-07-04 22:00:35 -04:00
Fail quietly when updating projects with broken URLs instead of logging
This commit is contained in:
parent
ba22538659
commit
ceccd1431e
1 changed files with 7 additions and 3 deletions
|
@ -33,16 +33,20 @@ foreach($projects as $project){
|
|||
|
||||
try{
|
||||
$project->FetchLastCommitTimestamp($apiKey);
|
||||
|
||||
}
|
||||
catch(Exceptions\AppException $ex){
|
||||
Log::WriteErrorLogEntry($ex->getMessage());
|
||||
// 404, continue.
|
||||
}
|
||||
|
||||
if($project->IsStatusAutomaticallyUpdated){
|
||||
// Check if this project is in review.
|
||||
if($project->Status == Enums\ProjectStatusType::InProgress){
|
||||
$project->FetchReviewStatus();
|
||||
try{
|
||||
$project->FetchReviewStatus();
|
||||
}
|
||||
catch(Exceptions\AppException){
|
||||
// 404, continue.
|
||||
}
|
||||
}
|
||||
|
||||
if(
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue