Change if statement to better handle objects; move options dict before at_msg_receive call to allow channels to be known in hook
This commit is contained in:
parent
96ebe8d0f3
commit
861c722d30
2 changed files with 2 additions and 4 deletions
|
|
@ -585,9 +585,7 @@ class SubscriptionHandler(object):
|
|||
for obj in self.all():
|
||||
from django.core.exceptions import ObjectDoesNotExist
|
||||
try:
|
||||
if hasattr(obj, 'account'):
|
||||
if not obj.account:
|
||||
continue
|
||||
if hasattr(obj, 'account') and obj.account:
|
||||
obj = obj.account
|
||||
if not obj.is_connected:
|
||||
continue
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue