diff --git a/main.py b/main.py
index 5f9b96e..f47fa4c 100644
--- a/main.py
+++ b/main.py
@@ -32,10 +32,11 @@ def login():
def is_logged_in():
global BROWSER
- if not BROWSER.response():
+ response = BROWSER.response()
+ if not response:
return False
try:
- return b'