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

Add support for async generators to "@logger.catch" #1303

Merged
merged 1 commit into from
Feb 18, 2025
Merged

Conversation

Delgan
Copy link
Owner

@Delgan Delgan commented Feb 18, 2025

Fix #1302.

The implementation is ugly because of Python 3.5 required compatibility ("yield" inside "async def" would generate "SyntaxError").

Also, note that currently async generator do not support arbitrary return values, but this might change (there is an opened PR at the time of writing).

The implementation is ugly because of Python 3.5 required compatibility
("yield" inside "async def" would generate "SyntaxError").

Also, note that currently async generator do not support arbitrary
return values, but this might change (there is an opened PR at the time
of writing).
@Delgan Delgan merged commit 7748b6c into master Feb 18, 2025
26 checks passed
@Delgan Delgan deleted the fix-1302 branch February 18, 2025 11:54
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 this pull request may close these issues.

Make "logger.catch()" compatible with asynchronous generators
1 participant