aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/track_status.py
diff options
context:
space:
mode:
Diffstat (limited to 'track_status.py')
-rw-r--r--track_status.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/track_status.py b/track_status.py
index 2761b2b..129b236 100644
--- a/track_status.py
+++ b/track_status.py
@@ -65,7 +65,10 @@ def loop_update_status(api, uids, timeout=DEFAULT_TIMEOUT):
print_status(users[uid])
while True:
time.sleep(timeout)
- updated_users = update_status(api, uids)
+ try:
+ updated_users = update_status(api, uids)
+ except API.ConnectionError:
+ continue
for uid in updated_users:
if users[uid].is_online() != updated_users[uid].is_online():
users[uid] = updated_users[uid]