1
0
mirror of https://github.com/squidfunk/mkdocs-material.git synced 2024-11-28 09:20:52 +01:00

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(data => {
if (!(data instanceof Array))
throw new TypeError
return []
/* Display number of stars and forks, if repository is given */
if (this.name_) {