Skip to content

Commit

Permalink
Fix: 'Nonetype' obj has not attr 'text' (UsergeTeam#414)
Browse files Browse the repository at this point in the history
  • Loading branch information
Krishna-Singhal authored Dec 8, 2021
1 parent eb3a704 commit e354cb6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion userge/plugins/utils/botpm.py
Original file line number Diff line number Diff line change
Expand Up @@ -539,7 +539,7 @@ async def broadcast(msg: PyroMessage):
filter_ = filters.create(lambda _, __, ___: filters.incoming & ~filters.edited)
while True:
response = await conv.get_response(filters=filter_)
if response.text.startswith("/cancel"):
if response.text and response.text.startswith("/cancel"):
IN_CONVO = False
return await msg.reply("Broadcast process Cancelled.")
if len(temp_msgs) >= 1 and response.text == "/done":
Expand Down

0 comments on commit e354cb6

Please sign in to comment.