Skip to content

Commit

Permalink
Merge branch 'tasks-dec' of https://github.com/GoogleCloudPlatform/gc…
Browse files Browse the repository at this point in the history
…e-rescue into tasks-dec
  • Loading branch information
tomerlf1 committed Feb 28, 2024
2 parents 9bb3889 + 13a0c1c commit c3adce6
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions gce_rescue/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -151,9 +151,8 @@ def inner(*args, **kwargs):
_logger.info('task %s '
'started at: %s',
task_func.__name__, datetime.now().strftime('%H:%M:%S'))
task_index = kwargs.pop('task_index') if kwargs.get('task_index') else None
total_tasks = kwargs.pop('total_tasks') if kwargs.get('total_tasks') \
else None
task_index = kwargs.pop('task_index', None)
total_tasks = kwargs.pop('total_tasks', None)
try:
res = task_func(*args, **kwargs)
except HttpError as e:
Expand Down

0 comments on commit c3adce6

Please sign in to comment.