Skip to content

Commit

Permalink
Bug with colon
Browse files Browse the repository at this point in the history
  • Loading branch information
cccs-kevin committed Jun 9, 2021
1 parent be0c4e1 commit 78a3007
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion antivirus.py
Original file line number Diff line number Diff line change
Expand Up @@ -426,7 +426,7 @@ def _parse_icap_results(icap_results: str, av_name: str, virus_name_header: str,

for line in result_lines:
if line.startswith(virus_name_header):
virus_name = line[len(virus_name_header):].strip()
virus_name = line[len(virus_name_header) + 1:].strip()
break

if not virus_name:
Expand Down

0 comments on commit 78a3007

Please sign in to comment.