Skip to content

Commit 1a71ab7

Browse files
committed
Is it BaseException ?
1 parent be6294e commit 1a71ab7

File tree

1 file changed

+4
-0
lines changed

1 file changed

+4
-0
lines changed

src/crawlee/_autoscaling/autoscaled_pool.py

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,6 +123,7 @@ async def run(self) -> None:
123123
)
124124

125125
try:
126+
logger.info(f'Await result')
126127
await run.result
127128
logger.info(f'Finished naturally, {run.worker_tasks=}, {run.result.result()=}')
128129
except AbortError:
@@ -134,6 +135,9 @@ async def run(self) -> None:
134135
except Exception as exc:
135136
logger.error('Something sinister happened', exc_info=exc)
136137
raise
138+
except BaseException as exc:
139+
logger.error('BaseException happened', exc_info=exc)
140+
raise
137141

138142
finally:
139143
logger.error('finally')

0 commit comments

Comments
 (0)