mirror of
https://github.com/standardebooks/web.git
synced 2025-07-06 06:40:33 -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,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(
|
||||||
(
|
(
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue