Skip to content

Commit 6e217ba

Browse files
committed
[Dexter] Account for another no-lineno scenario
This is another part of Dexter that had never seen a missing source location before, now newly turning up on Darwin.
1 parent e34179a commit 6e217ba

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

debuginfo-tests/dexter/dex/command/commands/DexExpectWatchBase.py

+2-1
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,8 @@ def eval(self, step_collection):
168168
for step in step_collection.steps:
169169
loc = step.current_location
170170

171-
if (os.path.exists(loc.path) and os.path.exists(self.path) and
171+
if (loc and os.path.exists(loc.path) and
172+
os.path.exists(self.path) and
172173
os.path.samefile(loc.path, self.path) and
173174
loc.lineno in self.line_range):
174175
try:

0 commit comments

Comments
 (0)