From 84e37b68ee6f0dbd3662106931bf30cd705dd795 Mon Sep 17 00:00:00 2001 From: Joseph Schorr Date: Tue, 7 Mar 2017 17:39:01 -0500 Subject: [PATCH] Change if statement to be more readable --- data/users/teamsync.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/data/users/teamsync.py b/data/users/teamsync.py index b44d600e8..1d44b2639 100644 --- a/data/users/teamsync.py +++ b/data/users/teamsync.py @@ -27,7 +27,8 @@ def sync_teams_to_groups(authentication, stale_cutoff): sync_team_tried.add(stale_team_sync.id) # Sync the team. - if not sync_team(authentication, stale_team_sync): + sync_successful = sync_team(authentication, stale_team_sync) + if not sync_successful: return