Verified Commit 1a9e5bd0 authored by Dom Sekotill's avatar Dom Sekotill
Browse files

Add assertion for debugging an issue with no apparent cause

parent 54f0b071
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -71,7 +71,11 @@ def get_file_years(paths: list[Path], ignored_commits: set[str]) -> dict[Path, i
	output = dict[Path, int]()

	for result in proc.stdout.split(b'\0\0'):
		try:
			commits, files = result.splitlines()
		except ValueError:
			msg = f"bad value: {result!r} in {proc.stdout!r}"
			raise AssertionError(msg)
		combos = product(split_commits(commits), split_paths(files))
		for (commit_year, commit_hash), path in combos:
			if commit_hash in ignored_commits: