Skip to content

Commit 5b9d6ad

Browse files
committed
remove extra logging
1 parent 03f5b5c commit 5b9d6ad

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

usaco_util.ts

+1-2
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@ const problems = require('./problems.json') as { [key: string]: ProblemData };
66
let report = 'added problems:\n```\n';
77

88
async function addProblem(id: number) {
9-
console.log('Adding problem ', id);
109
try {
1110
const url = `https://usaco.org/index.php?page=viewproblem2&cpid=${id}`;
1211
const response = await (await fetch(url)).text();
@@ -59,7 +58,7 @@ async function addProblem(id: number) {
5958
);
6059
return true;
6160
} catch (error) {
62-
console.log(error);
61+
if (!(error instanceof TypeError)) console.log(error);
6362
return false;
6463
}
6564
}

0 commit comments

Comments
 (0)