Fixbug where we suppress the exception if download fails while wait_for_status.

This exception will happen if the download RPC fails making _staging_dir = None
after Cleanup is invoked and GetStatusOfBackgroundDownloads is being called.

Bug was introduced in: Ic73a9ca0fbfd66c8ee79b8848dd019c0fca5d7d9

TEST=Pylint + unittest

Change-Id: I8fc2be04e21b673267ff4d0b6249e62080ce3e1b
Tested-by: Chris Sosa <>
Reviewed-by: Alex Miller <>
Commit-Ready: Chris Sosa <>
1 file changed