Skip to content

Commit

Permalink
Fix E0601: used-before-assign lint errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
nzlosh committed Apr 3, 2024
1 parent 48b1ced commit 4668ed5
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -154,6 +154,7 @@ def migrate_executions(start_dt: datetime.datetime, end_dt: datetime.datetime) -
if not liveaction_id:
continue

liveaction_db = None
try:
liveaction_db = LiveAction.get_by_id(liveaction_id)
except StackStormDBObjectNotFoundError:
Expand Down Expand Up @@ -262,6 +263,7 @@ def migrate_workflow_objects(
print("Will migrate %s TaskExecutionDB objects" % (objects_count))
print("")

task_execution_db = None
for index, task_execution_id in enumerate(task_execution_ids, 1):
try:
task_execution_db = TaskExecution.get_by_id(task_execution_id)
Expand Down

0 comments on commit 4668ed5

Please sign in to comment.