Skip to content

TypeError: 'NoneType' object does not support the context manager protocol #90

@Chaz6

Description

@Chaz6

Running on AlmaLinux 10 with Python 3.12, I can start the server, but when a connection is received it throws an exception.

Exception ignored in thread started by: <function QSSHServer.server_main.<locals>.handle_connection at 0x7ff8cef2bba0>
Traceback (most recent call last):
  File "/data/venv/lib64/python3.12/site-packages/honeypots/ssh_server.py", line 171, in handle_connection
    with session.accept(30) as conn:
         ^^^^^^^^^^^^^^^^^^
TypeError: 'NoneType' object does not support the context manager protocol

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions