From e4e947da88d40fe0189c9c4d1a6a778ffc15e240 Mon Sep 17 00:00:00 2001 From: Matt Robenolt Date: Sun, 25 Oct 2015 13:11:55 -0700 Subject: [PATCH] lint --- src/sentry/db/models/manager.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/sentry/db/models/manager.py b/src/sentry/db/models/manager.py index d4377030563ebe..3a64a2119a355f 100644 --- a/src/sentry/db/models/manager.py +++ b/src/sentry/db/models/manager.py @@ -292,11 +292,11 @@ def bind_nodes(self, object_list, *node_names): object_node_list = [] for name in node_names: - object_node_list.extend( - ((i, getattr(i, name)) + object_node_list.extend(( + (i, getattr(i, name)) for i in object_list - if getattr(i, name).id) - ) + if getattr(i, name).id + )) node_ids = [n.id for _, n in object_node_list] if not node_ids: