Skip to content

Commit

Permalink
Merge pull request #99 from KeithKelleher/master
Browse files Browse the repository at this point in the history
handle errors in external APIs better
  • Loading branch information
KeithKelleher authored Oct 18, 2023
2 parents e14d725 + 51c796c commit c4aab22
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/models/externalAPI/DynamicPredictions.ts
Original file line number Diff line number Diff line change
Expand Up @@ -275,7 +275,7 @@ export class DynamicPredictions {
return responses.map(r => r.data ? r.data : null);
}, (rejected: any) => {
console.log(rejected);
throw new Error(rejected);
return [];
});
}

Expand Down

0 comments on commit c4aab22

Please sign in to comment.