Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 7 additions & 0 deletions quick_audit.py
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,13 @@ def main() -> None:
file=sys.stderr,
)
sys.exit(1)
if args.from_block > args.to_block:
print(
f"INFO: Swapping from-block ({args.from_block}) and to-block ({args.to_block}) "
"to ensure ascending order.",
file=sys.stderr,
)
args.from_block, args.to_block = args.to_block, args.from_block

repo_dir = pathlib.Path(__file__).resolve().parent
log_audit_path = repo_dir / "log_audit.py"
Expand Down