From 6b869f1d74eb347fbb310c86e05a9594f78c42bc Mon Sep 17 00:00:00 2001 From: Bastian Diehl Date: Fri, 11 Oct 2019 17:13:31 +0200 Subject: [PATCH] Fixed exception on GitHub rate limit error (#1303) this is caused by too many request to github --- .../javascripts/components/Material/Source/Adapter/GitHub.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/assets/javascripts/components/Material/Source/Adapter/GitHub.js b/src/assets/javascripts/components/Material/Source/Adapter/GitHub.js index 272d1bce2..cca7a21c1 100644 --- a/src/assets/javascripts/components/Material/Source/Adapter/GitHub.js +++ b/src/assets/javascripts/components/Material/Source/Adapter/GitHub.js @@ -64,7 +64,7 @@ export default class GitHub extends Abstract { .then(response => response.json()) .then(data => { if (!(data instanceof Array)) - throw new TypeError + return [] /* Display number of stars and forks, if repository is given */ if (this.name_) {