fix: protect file list download

This commit is contained in:
tdurieux
2024-01-12 15:33:18 +01:00
parent b103370d2b
commit fa189949a6

View File

@@ -169,9 +169,10 @@ export default class GitHubStream extends GitHubBase implements SourceBase {
`sha ${sha}, countFiles: ${count.file} countRequest: ${count.request}, parentPath: "${parentPath}"`
);
count.request++;
const data = await this.getGHTree(sha, { recursive: false });
let data = null;
try {
data = await this.getGHTree(sha, { recursive: false });
this.tree2Tree(data.tree, truncatedTree, parentPath);
} catch (error) {
console.error(error);