diff --git a/projects/scrape-txs/src/lib/run.ts b/projects/scrape-txs/src/lib/run.ts index 4d1caaf..186171e 100644 --- a/projects/scrape-txs/src/lib/run.ts +++ b/projects/scrape-txs/src/lib/run.ts @@ -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}`;