Skip to content

Commit

Permalink
Set start to zero if start_frame is None to avoid TypeError
Browse files Browse the repository at this point in the history
  • Loading branch information
jgru committed May 8, 2022
1 parent 0a40cab commit 77c130d
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -280,7 +280,7 @@ def make_get_thread_stack_message(self, py_db, seq, thread_id, topmost_frame, fm
total_frames = len(frames)
stack_frames = frames
if bool(levels):
start = start_frame
start = start_frame if bool(start_frame) else 0
end = min(start + levels, total_frames)
stack_frames = frames[start:end]

Expand Down

0 comments on commit 77c130d

Please sign in to comment.