An unbound var is lingering around when the tarball is corrupt.
+ l8_process_scene.py --verbose -s s3queue --clean --overwrite --list-file job_33861984.csv LC80750192015105LGN00
LC80750192015105LGN00_B1.TIF
LC80750192015105LGN00_B2.TIF
LC80750192015105LGN00_B3.TIF
LC80750192015105LGN00_B4.TIF
LC80750192015105LGN00_B5.TIF
LC80750192015105LGN00_B6.TIF
LC80750192015105LGN00_B7.TIF
gzip: stdin: unexpected end of file
tar: Unexpected EOF in archive
tar: Unexpected EOF in archive
tar: Error is not recoverable: exiting now
LC80750192015105LGN00.tar.gz successfully downloaded (402891096 bytes)
tar xvf LC80750192015105LGN00.tar.gz --directory=LC80750192015105LGN00
Traceback (most recent call last):
File "landsat_ingestor/ingestor/l8_process_scene.py", line 115, in <module>
status = main(sys.argv[1:])
File "landsat_ingestor/ingestor/l8_process_scene.py", line 106, in main
overwrite = args.overwrite)
File "landsat_ingestor/ingestor/l8_process_scene.py", line 65, in process
scene_info.add_mtl_info(scene_dict, scene_root, local_dir)
UnboundLocalError: local variable 'local_dir' referenced before assignment
Task ended with status 1
An unbound var is lingering around when the tarball is corrupt.
/cc @warmerdam