Skip to content

Commit 685e66a

Browse files
committed
Tue, Jul 22, 2025, 12:09 PM -04:00
1 parent c94c5d5 commit 685e66a

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

compare50/__main__.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -245,10 +245,11 @@ def get_undecodable_files(subs):
245245
n_archives = len(get_non_empty_subs(archives))
246246
n_distro = len(distro_files)
247247

248-
if n_subs + n_archives <= 0:
248+
if n_subs + n_archives == 0:
249249
termcolor.cprint(
250250
"Error: No files left to compare after filtration", "red", file=sys.stderr)
251-
251+
# return
252+
252253
avg = round(sum(len(s.files) for s in itertools.chain(subs, archives)) / (n_subs + n_archives), 2)
253254
data = PluralDict(subs=n_subs, archives=n_archives, distro=n_distro, avg=avg)
254255
fmt = "Found {subs} submission{subs(s)}, {archives} archive submission{archives(s)}, and " \

0 commit comments

Comments
 (0)