Skip to content

Commit

Permalink
use name
Browse files Browse the repository at this point in the history
  • Loading branch information
rhyek committed Jun 12, 2024
1 parent c66a47b commit 1bc6875
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions projects/scrape-txs/src/lib/run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -62,9 +62,9 @@ export async function run(months: dayjs.Dayjs[]) {
})();
createTxs = result.createTxs;
deleteTxIds = result.deleteTxIds;
} catch (error) {
} catch (error: any) {
console.log('1');
if (error instanceof playwrightErrors.TimeoutError && isLambda()) {
if (error.constructor?.name === 'TimeoutError' && isLambda()) {
console.log('2');
const zipExtension = '.zip';
const traceAbsolutePath = `/tmp/trace${zipExtension}`;
Expand Down

0 comments on commit 1bc6875

Please sign in to comment.