From 8d82dfb2be3b383ae7d54132820896fd8543aeee Mon Sep 17 00:00:00 2001 From: Daniel Blankenberg Date: Wed, 11 Feb 2015 12:33:49 -0500 Subject: [PATCH] Fix for Data Tables persisting when .loc file doesn't exist. --- lib/galaxy/tools/data/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/galaxy/tools/data/__init__.py b/lib/galaxy/tools/data/__init__.py index 190a9c18fd5..2f648ac0b0c 100644 --- a/lib/galaxy/tools/data/__init__.py +++ b/lib/galaxy/tools/data/__init__.py @@ -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