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

wrapper.py -> Skip processing empty string in transform_html #20

Merged
merged 6 commits into from
Sep 29, 2023
Merged

wrapper.py -> Skip processing empty string in transform_html #20

merged 6 commits into from
Sep 29, 2023

Conversation

bralbral
Copy link
Contributor

Monkey patch for issue #19.

Closes #19

@Tishka17
Copy link
Owner

Tishka17 commented Sep 25, 2023

I guess it's better to skip text processing if is empty. Probably just inside transform_html func

@bralbral bralbral changed the title aiogram_middleware.py -> Fixed string checking for None value wrapper.py -> Skip processing None in transform_html Sep 26, 2023
@bralbral bralbral changed the title wrapper.py -> Skip processing None in transform_html wrapper.py -> Skip processing empty string in transform_html Sep 26, 2023
@bralbral
Copy link
Contributor Author

I guess it's better to skip text processing if is empty. Probably just inside transform_html func

Added new and corrected previous changes.

I apologize for the number of commits.

@Tishka17 Tishka17 merged commit 89afd19 into Tishka17:develop Sep 29, 2023
0 of 4 checks passed
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.

Unexpected behavior in aiogram_middleware.py -> _transform_text_caption
2 participants