Fixed exception on GitHub rate limit error (#1303)

this is caused by too many request to github
This commit is contained in:
Bastian Diehl 2019-10-11 17:13:31 +02:00 committed by Martin Donath
parent 1127db13b0
commit 6b869f1d74

View File

@ -64,7 +64,7 @@ export default class GitHub extends Abstract {
.then(response => response.json()) .then(response => response.json())
.then(data => { .then(data => {
if (!(data instanceof Array)) if (!(data instanceof Array))
throw new TypeError return []
/* Display number of stars and forks, if repository is given */ /* Display number of stars and forks, if repository is given */
if (this.name_) { if (this.name_) {