Skip to content

Commit

Permalink
🐛 fix version 0.49.0
Browse files Browse the repository at this point in the history
  • Loading branch information
RF-Tar-Railt committed Jul 7, 2024
1 parent 4ed151c commit 968480a
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/nonebot_plugin_alconna/uniseg/message.py
Original file line number Diff line number Diff line change
Expand Up @@ -967,12 +967,11 @@ async def export(

def export_sync(
self,
bot: Optional[Bot] = None,
fallback: Union[bool, FallbackStrategy] = FallbackStrategy.rollback,
adapter: Optional[str] = None,
) -> Message:
"""(实验性)同步方法地将 UniMessage 转换为指定适配器下的 Message"""
coro = self.export(bot, fallback, adapter)
coro = self.export(None, fallback, adapter)
try:
return coro.send(None)
except StopIteration as e:
Expand Down

0 comments on commit 968480a

Please sign in to comment.