Skip to content

Commit

Permalink
remove declared next variable
Browse files Browse the repository at this point in the history
  • Loading branch information
Tooyosi committed Sep 19, 2024
1 parent 731f4aa commit cd657af
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions panoptes_client/workflow.py
Original file line number Diff line number Diff line change
Expand Up @@ -580,8 +580,7 @@ def _create_agg(self, user_id):
def _get_agg_property(self, param):
try:
aggs = self.get_batch_aggregations()
next = six.next(aggs)
return getattr(next, param, None)
return getattr(six.next(aggs), param, None)
except StopIteration:
raise PanoptesAPIException(
"Could not find Aggregations for Workflow with id='{}'".format(self.id)
Expand Down

0 comments on commit cd657af

Please sign in to comment.