diff --git a/integrations/basecamp/zulip_basecamp_mirror b/integrations/basecamp/zulip_basecamp_mirror index 4bc4f66..cdf64b8 100755 --- a/integrations/basecamp/zulip_basecamp_mirror +++ b/integrations/basecamp/zulip_basecamp_mirror @@ -122,7 +122,7 @@ def run_mirror(): try: # we use an exponential backoff approach when we get 429 (Too Many Requests). sleepInterval = 1 - while 1: + while True: time.sleep(sleepInterval) response = requests.get("https://basecamp.com/%s/api/v1/events.json" % (config.BASECAMP_ACCOUNT_ID), params={'since': since}, diff --git a/integrations/codebase/zulip_codebase_mirror b/integrations/codebase/zulip_codebase_mirror index 1bab1a8..84e9a55 100755 --- a/integrations/codebase/zulip_codebase_mirror +++ b/integrations/codebase/zulip_codebase_mirror @@ -277,7 +277,7 @@ def run_mirror(): try: sleepInterval = 1 - while 1: + while True: events = make_api_call("activity")[::-1] if events is not None: sleepInterval = 1