Skip to content

separating security messages #278

Description

@jsmith173

Is it possible to seperate security messages?
It seems RestrictedPython uses existing exception types to report a security error.

I have found in compile.py

if result.errors:
raise SyntaxError(result.errors)`

When I replace SyntaxError to my new exception type it will solve the problem? Or how could I do that?

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