Commit 03040903 authored by Nick Mathewson's avatar Nick Mathewson 🤹
Browse files

practracker: handle empty files.

Previously practracker would fail on a file with no lines.
parent 3a296457
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -8,6 +8,7 @@ import re

def get_file_len(f):
    """Get file length of file"""
    i = -1
    for i, l in enumerate(f):
        pass
    return i + 1