details: http://www.bx.psu.edu/hg/galaxy/rev/d95a9c843c53 changeset: 3159:d95a9c843c53 user: Dan Blankenberg <dan@bx.psu.edu> date: Tue Dec 08 17:05:35 2009 -0500 description: Change the way that the check for if dataset hashed directories exists is handled. diffstat: lib/galaxy/model/__init__.py | 6 +----- 1 files changed, 1 insertions(+), 5 deletions(-) diffs (17 lines): diff -r fdb34b7858df -r d95a9c843c53 lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py Tue Dec 08 13:25:33 2009 -0500 +++ b/lib/galaxy/model/__init__.py Tue Dec 08 17:05:35 2009 -0500 @@ -374,12 +374,8 @@ if not os.path.exists( filename ): dir = os.path.join( self.file_path, *directory_hash_id( self.id ) ) # Create directory if it does not exist - try: + if not os.path.exists( dir ): os.makedirs( dir ) - except OSError, e: - # File Exists is okay, otherwise reraise - if e.errno != errno.EEXIST: - raise # Return filename inside hashed directory return os.path.abspath( os.path.join( dir, "dataset_%d.dat" % self.id ) ) else: