You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Python 3.11 while trying to capture exception (KeyboardInterrupt during some operations) cause ValueError: Indices for islice() must be None or an integer: 0 <= x <= sys.maxsize error
Somehow we can have a chance to get instruction_index equals -1 (not always trigger and hard to reproduce in a simple script) which will crash the islice function
Describe the bug
In Python 3.11 while trying to capture exception (KeyboardInterrupt during some operations) cause
ValueError: Indices for islice() must be None or an integer: 0 <= x <= sys.maxsize
errorSomehow we can have a chance to get
instruction_index
equals-1
(not always trigger and hard to reproduce in a simple script) which will crash theislice
functionrich/rich/traceback.py
Lines 451 to 459 in 43d3b04
Here is how I setup Rich exception handler (with
loguru
)Platform
Click to expand
What platform (Win/Linux/Mac) are you running on? What terminal software are you using?
Linux; VSCode built-in terminal
I may ask you to copy and paste the output of the following commands. It may save some time if you do it now.
If you're using Rich in a terminal:
The text was updated successfully, but these errors were encountered: