This commit is contained in:
Kovid Goyal 2022-04-19 10:53:18 +05:30
parent c4c62c1505
commit 402fac3edf
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -200,7 +200,7 @@ def parse_patch(raw: str) -> Patch:
else: else:
if current_hunk is None: if current_hunk is None:
continue continue
q = line[0] q = line[0] if line else ''
if q == '+': if q == '+':
current_hunk.add_line() current_hunk.add_line()
elif q == '-': elif q == '-':