Skip to content

Commit

Permalink
cho
Browse files Browse the repository at this point in the history
  • Loading branch information
john-bodley authored May 17, 2023
1 parent f0a26fd commit 9bf6b0c
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions superset/reports/commands/execute.py
Original file line number Diff line number Diff line change
Expand Up @@ -671,7 +671,6 @@ def __init__(
self._scheduled_dttm = scheduled_dttm

def run(self) -> None:
state_found = False
for state_cls in self.states_cls:
if (self._report_schedule.last_state is None and state_cls.initial) or (
self._report_schedule.last_state in state_cls.current_states
Expand All @@ -682,9 +681,8 @@ def run(self) -> None:
self._scheduled_dttm,
self._execution_id,
).next()
state_found = True
break
if not state_found:
else:
raise ReportScheduleStateNotFoundError()


Expand Down

0 comments on commit 9bf6b0c

Please sign in to comment.