fix: guards priority tweaks
This commit is contained in:
@@ -407,17 +407,16 @@ def main(driver: Chrome, logger = logging.getLogger('main')):
|
|||||||
logger.warning("[%d/%d] Exhausted all allowed attempts; skipping", index-1, limit-1)
|
logger.warning("[%d/%d] Exhausted all allowed attempts; skipping", index-1, limit-1)
|
||||||
raise Skip()
|
raise Skip()
|
||||||
|
|
||||||
if (sent := cell(index, column.sent).value) is not None and str(sent).strip():
|
|
||||||
logger.info("[%d/%d] Already visited; skipping '%s'", index-1, limit-1, email)
|
|
||||||
occurrence[code] += 1
|
|
||||||
progress['omit'] += 1
|
|
||||||
raise Skip()
|
|
||||||
|
|
||||||
if index < options.get('start', 2) or progress['done'] >= options.get('limit', limit):
|
if index < options.get('start', 2) or progress['done'] >= options.get('limit', limit):
|
||||||
logger.info("[%d/%d] Not planned; skipping '%s'", index-1, limit-1, email)
|
logger.info("[%d/%d] Not planned; skipping '%s'", index-1, limit-1, email)
|
||||||
progress['omit'] += 1
|
progress['omit'] += 1
|
||||||
raise Skip()
|
raise Skip()
|
||||||
|
|
||||||
|
if (sent := cell(index, column.sent).value) is not None and str(sent).strip():
|
||||||
|
logger.info("[%d/%d] Already visited; skipping '%s'", index-1, limit-1, email)
|
||||||
|
occurrence[code] += 1
|
||||||
|
raise Skip()
|
||||||
|
|
||||||
match options.get('occurrence'):
|
match options.get('occurrence'):
|
||||||
case o if o is None:
|
case o if o is None:
|
||||||
pass
|
pass
|
||||||
|
|||||||
Reference in New Issue
Block a user