Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Using Enum as event names causes errors when local_handler is used #14

Closed
melvinkcx opened this issue Nov 2, 2021 · 0 comments · Fixed by #15
Closed

Using Enum as event names causes errors when local_handler is used #14

melvinkcx opened this issue Nov 2, 2021 · 0 comments · Fixed by #15
Assignees

Comments

@melvinkcx
Copy link
Owner

Event pattern matching expects event names to be of string type due to the usage of fnmatch.

Errors occur when Enum type is used as event names with local_handler.

Suggestion:

  • Explicitly stringify event names with str() if event name is not of string type
@melvinkcx melvinkcx self-assigned this Nov 2, 2021
melvinkcx added a commit that referenced this issue Nov 2, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant