Update tracer.py

This commit is contained in:
sizhky 2024-09-08 20:33:48 +05:30 committed by GitHub
parent 34f94f74dc
commit f3d08deb9b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -82,7 +82,7 @@ def get_path_and_source_from_frame(frame):
_, _, source, _ = linecache.cache.get(file_name)
except Exception:
pass
if ipython_filename_match:
elif ipython_filename_match:
entry_number = int(ipython_filename_match.group(1))
try:
import IPython