kenfar/DataGristle — Issue #7: Elegantly handle empty files
Author: kenfar
Created: 2011-10-31 03:16:26+00:00
State: open
Labels: Defect, High Priority

A number of scripts will die if provided an empty file.

The error is in file_type.analyze_file()

More appropriate behavior would be to do nothing or provide a message that the file is empty. Probably a non-zero return code as well.