mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
[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:
committed by
intellij-monorepo-bot
parent
15a42dd43e
commit
a5a3966ecc
@@ -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])
|
||||
|
||||
|
||||
@@ -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):
|
||||
|
||||
Reference in New Issue
Block a user