Skip to content

Commit

Permalink
fix Py version
Browse files Browse the repository at this point in the history
  • Loading branch information
willmcgugan committed Sep 10, 2024
1 parent 062488f commit 3d01bd4
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions rich/traceback.py
Original file line number Diff line number Diff line change
Expand Up @@ -447,8 +447,7 @@ def get_locals(

last_instruction: Optional[Tuple[Tuple[int, int], Tuple[int, int]]]
last_instruction = None

if sys.version_info >= (3, 12):
if sys.version_info >= (3, 11):
try:
instruction_index = frame_summary.f_lasti // 2
instruction_position = next(
Expand Down

0 comments on commit 3d01bd4

Please sign in to comment.