1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/ec9d31a8bc04/ Changeset: ec9d31a8bc04 User: dan Date: 2014-02-10 19:31:39 Summary: Fix for Dataset.set_total_size() when e.g. encountering a dead symlink. Affected #: 1 file diff -r 29ce93a13ac7c4a5d2b54e5e2c10960f30a350b3 -r ec9d31a8bc046fa2c682c0b220b7ecdbd014e38b lib/galaxy/model/__init__.py --- a/lib/galaxy/model/__init__.py +++ b/lib/galaxy/model/__init__.py @@ -1221,7 +1221,7 @@ self.total_size = self.file_size or 0 if self.object_store.exists(self, extra_dir=self._extra_files_path or "dataset_%d_files" % self.id, dir_only=True): for root, dirs, files in os.walk( self.extra_files_path ): - self.total_size += sum( [ os.path.getsize( os.path.join( root, file ) ) for file in files ] ) + self.total_size += sum( [ os.path.getsize( os.path.join( root, file ) ) for file in files if os.path.exists( os.path.join( root, file ) ) ] ) def has_data( self ): """Detects whether there is any data""" return self.get_size() > 0 Repository URL: https://bitbucket.org/galaxy/galaxy-central/ -- This is a commit notification from bitbucket.org. You are receiving this because you have the service enabled, addressing the recipient of this email.