mirror of
https://github.com/NohamR/OqeeRewind.git
synced 2026-11-25 15:29:46 +00:00
Exit if no valid ticks found in bruteforce range
This commit is contained in:
1 parent
6624a5a801
commit
247c9f6fe7
1 file changed
+3
@@ -253,6 +253,9 @@ if __name__ == "__main__":
|
|||||||
)
|
)
|
||||||
|
|
||||||
valid_ticks = asyncio.run(bruteforce(track_id, start_tick_user, batch_size))
|
valid_ticks = asyncio.run(bruteforce(track_id, start_tick_user, batch_size))
|
||||||
|
if len(valid_ticks) == 0:
|
||||||
|
logger.error("No valid ticks found in bruteforce range.")
|
||||||
|
sys.exit(1)
|
||||||
valid_tick = valid_ticks[0]
|
valid_tick = valid_ticks[0]
|
||||||
|
|
||||||
start_tick, start_rep = find_nearest_tick_by_hour(
|
start_tick, start_rep = find_nearest_tick_by_hour(
|
||||||
|
|||||||
Reference in new issue
Block a user