Skip to content

Commit 6b9b8ac

Browse files
committed
Fixed exception when no token is fecthed in SSE
1 parent 17b6d2f commit 6b9b8ac

1 file changed

Lines changed: 2 additions & 1 deletion

File tree

splitio/push/manager.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -143,7 +143,8 @@ def _trigger_connection_flow(self):
143143
self._feedback_loop.put(Status.PUSH_RETRYABLE_ERROR)
144144
return
145145

146-
if not token.push_enabled:
146+
147+
if token is None or not token.push_enabled:
147148
self._feedback_loop.put(Status.PUSH_NONRETRYABLE_ERROR)
148149
return
149150
self._telemetry_runtime_producer.record_token_refreshes()

0 commit comments

Comments
 (0)