fix 500 error

pull/175/head
Aevann 2023-08-03 08:16:57 +03:00
parent af0deb7f87
commit e1088a3df4
1 changed files with 1 additions and 1 deletions

View File

@ -176,7 +176,7 @@ def NOTIFY_USERS(text, v, oldtext=None, ghost=False, log_cost=None):
notify_users.update(members)
if ghost or v.id not in member_ids:
if group.name == 'verifiedrich':
if group and group.name == 'verifiedrich':
abort(403, f"Only !verifiedrich members can mention it!")
cost += len(members) * 10
if cost > v.coins: