Skip to content

Raising an exception with %s crashes the server #275

Description

@Ayuto

Put this in an SP plugin and load the plugin. The server will crash during printing the exception.

def crash():
    name = 'asd'
    raise NameError("'%s' crash :( ... f-strings and format() work fine."% name)
    
crash()

This also happens if you replace the entire source-python/__init__.py with this snippet. Python issue? Reproduced with CS:S on Windows and Linux.

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Fields

    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions