pre-commit: add codespell (#25571)

old-commit-hash: 6590fb2b93baedb2e1c5267b4f191f8e20fcd1d2
This commit is contained in:
Adeeb Shihadeh
2022-08-30 11:20:55 -07:00
committed by GitHub
parent 8f468a01fa
commit 35ff65121e
48 changed files with 74 additions and 65 deletions

View File

@@ -110,8 +110,8 @@ def juggle_route(route_or_segment_name, segment_count, qlog, can, layout, dbc=No
logs = logs[segment_start:segment_end]
if None in logs:
ans = input(f"{logs.count(None)}/{len(logs)} of the rlogs in this segment are missing, would you like to fall back to the qlogs? (y/n) ")
if ans == 'y':
resp = input(f"{logs.count(None)}/{len(logs)} of the rlogs in this segment are missing, would you like to fall back to the qlogs? (y/n) ")
if resp == 'y':
logs = r.qlog_paths()[segment_start:segment_end]
else:
print("Please try a different route or segment")