Skip to content

Commit

Permalink
fix: potential Value Error in PEGraphX.contains_line
Browse files Browse the repository at this point in the history
  • Loading branch information
lukasrothenberger committed Jun 17, 2024
1 parent a867791 commit 2af03d2
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion discopop_explorer/PEGraphX.py
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,9 @@ def end_position(self) -> LineID:
return LineID(f"{self.file_id}:{self.end_line}")

def contains_line(self, other_line) -> bool:
if other_line == "GlobalVar":
if other_line == "GlobalVar" or other_line == "LineNotFound":
return False
if not ":" in other_line:
return False
other_file_id = int(other_line.split(":")[0])
other_line_num = int(other_line.split(":")[1])
Expand Down

0 comments on commit 2af03d2

Please sign in to comment.