Skip to content
This repository has been archived by the owner on Aug 23, 2020. It is now read-only.

Commit

Permalink
Update qcontactdb.py
Browse files Browse the repository at this point in the history
  • Loading branch information
pandolia committed May 17, 2017
1 parent b798e01 commit 95b4565
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion qqbot/qcontactdb/qcontactdb.py
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ def find(self, tinfo, uin, content=None):
if cl is None:
return None
elif not cl:
if getattr(tinfo, 'ctype') == 'group':
if getattr(tinfo, 'ctype', None) == 'group':
if self.sysRegex.match(content):
return 'SYSTEM-MESSAGE'
self.Update(tinfo)
Expand Down

0 comments on commit 95b4565

Please sign in to comment.