Skip to content

TypeError: 'None' comparison in collect_try_except_info() #1720

Closed
@Sorontik

Description

@Sorontik

Hello,

when an exception occured in my Program, i got this output in the debug console:

79.61s - Error collecting try..except info from source (src/main.py)
Traceback (most recent call last):
File "c:\Users<username>.vscode\extensions\ms-python.debugpy-2024.12.0-win32-x64\bundled\libs\debugpy_vendored\pydevd\pydevd.py", line 796, in collect_try_except_info
if line > max_line:
^^^^^^^^^^^^^^^
TypeError: '>' not supported between instances of 'NoneType' and 'int'

Unfortunately, the Program is rather complex and i was unable to reproduce this error in a simplified Version of my script.

This did not happen previously, so it might be related to the changes in one of the last releases (I'm currently on v2024.12.0 which should be the latest - on a up-to-date VS-Code)

Metadata

Metadata

Assignees

Labels

needs reproIssue has not been reproduced yet

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions