[Debugger] PY-81950 Flaky error: AttributeError: 'tuple' object has no attribute 'startswith' #PY-81950 Ready for Merge

* Added additional type-check in the is_real_file function

GitOrigin-RevId: 8cec0ce0ce98eba7fce2c75a1352675e36b84d87
This commit is contained in:
Natalia.Murycheva
2025-06-20 13:07:53 +00:00
committed by intellij-monorepo-bot
parent 15a42dd43e
commit a5a3966ecc
2 changed files with 2 additions and 2 deletions
@@ -742,7 +742,7 @@ class NetCommandFactory:
else:
my_file = abs_path_real_path_and_base[0]
if is_real_file(my_file) and not is_jup_cell:
if not is_jup_cell and is_real_file(my_file):
# if filename is Jupyter cell id
my_file = pydevd_file_utils.norm_file_to_client(abs_path_real_path_and_base[0])
+1 -1
View File
@@ -556,7 +556,7 @@ def _is_int(filename):
def is_real_file(filename):
# Check for Jupyter cells
return not _is_int(filename) and not filename.startswith("<ipython-input")
return not _is_int(filename) and (isinstance(filename, str) and not filename.startswith("<ipython-input"))
def is_jupyter_cell(frame):