Fix for Data Tables persisting when .loc file doesn't exist.

This commit is contained in:
Daniel Blankenberg
2015-02-11 12:33:49 -05:00
parent 48f77dc742
commit 8d82dfb2be
+1 -1
View File
@@ -495,7 +495,7 @@ class TabularToolDataTable( ToolDataTable, Dictifiable ):
try:
data_table_fh = open( filename, 'r+b' )
except IOError, e:
log.warning( 'Error opening data table file (%s) with r+b, assuming file does not exist and will open as wb: %s', self.filename, e )
log.warning( 'Error opening data table file (%s) with r+b, assuming file does not exist and will open as wb: %s', filename, e )
data_table_fh = open( filename, 'wb' )
if os.stat( filename )[6] != 0:
# ensure last existing line ends with new line