diff --git a/mifia.py b/mifia.py index 8a3aec9f..848ac529 100644 --- a/mifia.py +++ b/mifia.py @@ -350,7 +350,7 @@ while True: else: g.message(g.status()) p = g.findid(t['from']['id']) - if p.role == 1: + if p is not None and p.role == 1: p.message(g.mifiastatus()) elif t['text'].startswith("/fullstatus"): if t['from']['id'] == g.adminid: