Skip to content

Commit

Permalink
Explicitly set saved_paths to list (#323)
Browse files Browse the repository at this point in the history
  • Loading branch information
aarontp authored Dec 12, 2018
1 parent 3e97714 commit 31ee792
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions turbinia/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -282,6 +282,8 @@ def format_task_status(
task.get('name'), task.get('user'), task.get('worker_name'),
success, status))
saved_paths = task.get('saved_paths', [])
if saved_paths is None:
saved_paths = []
for path in saved_paths:
results.append('\t{0:s}'.format(path))
else:
Expand Down

0 comments on commit 31ee792

Please sign in to comment.