2
0
mirror of https://github.com/pyrogram/pyrogram synced 2025-10-25 15:16:51 +00:00

Fix caption being "None" when passing None (#879)

This commit is contained in:
Shrimadhav U K
2022-01-29 15:43:09 +05:30
committed by GitHub
parent 7d444381c7
commit 4af9e30cfd

View File

@@ -31,7 +31,7 @@ class Parser:
self.markdown = Markdown(client)
async def parse(self, text: str, mode: Optional[str] = object):
text = str(text).strip()
text = str(text if text else "").strip()
if mode == object:
if self.client: