"==" instead of "is"
with "is" the condition does not get executed for me. Python 3.6.6.
This commit is contained in:
parent
7a14de987c
commit
101aa73f13
@ -95,7 +95,7 @@ while True:
|
|||||||
event = td_receive()
|
event = td_receive()
|
||||||
if event:
|
if event:
|
||||||
# if client is closed, we need to destroy it and create new client
|
# if client is closed, we need to destroy it and create new client
|
||||||
if event['@type'] is 'updateAuthorizationState' and event['authorization_state']['@type'] is 'authorizationStateClosed':
|
if event['@type'] == 'updateAuthorizationState' and event['authorization_state']['@type'] == 'authorizationStateClosed':
|
||||||
break
|
break
|
||||||
|
|
||||||
# handle an incoming update or an answer to a previously sent request
|
# handle an incoming update or an answer to a previously sent request
|
||||||
|
Loading…
Reference in New Issue
Block a user