Skip to content

Commit 1fb7961

Browse files
authored
fix: replace bare raise with return False in _restore_from_checkpoint (#196)
2 parents 440da11 + bcd45e4 commit 1fb7961

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scrapling/spiders/engine.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -205,7 +205,7 @@ async def _restore_from_checkpoint(self) -> bool:
205205
Returns True if successfully restored, False otherwise.
206206
"""
207207
if not self._checkpoint_system_enabled:
208-
raise
208+
return False
209209

210210
data = await self._checkpoint_manager.load()
211211
if data is None:

0 commit comments

Comments
 (0)