Skip to content

Commit ec79406

Browse files
committed
no double access
1 parent 4effd83 commit ec79406

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

codeflash/tracer.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -246,7 +246,7 @@ def __exit__(
246246
def tracer_logic(self, frame: FrameType, event: str) -> None:
247247
if event != "call":
248248
return
249-
if self.timeout is not None and (time.time() - self.start_time) > self.timeout:
249+
if None is not self.timeout and (time.time() - self.start_time) > self.timeout:
250250
sys.setprofile(None)
251251
threading.setprofile(None)
252252
console.print(f"Codeflash: Timeout reached! Stopping tracing at {self.timeout} seconds.")

0 commit comments

Comments
 (0)