commit/galaxy-central: dan: Fix for custom dbkeys when chrom count dataset has been deleted.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/38f8adbf6a47/ Changeset: 38f8adbf6a47 User: dan Date: 2014-09-02 18:50:37 Summary: Fix for custom dbkeys when chrom count dataset has been deleted. Affected #: 1 file diff -r d8eccdf88c8090e7237dca11502c5c62b3388bc0 -r 38f8adbf6a47aa05b64c8dd46ee828c36628df31 lib/galaxy/webapps/galaxy/controllers/user.py --- a/lib/galaxy/webapps/galaxy/controllers/user.py +++ b/lib/galaxy/webapps/galaxy/controllers/user.py @@ -1680,9 +1680,12 @@ continue else: # Set chrom count. - chrom_count = int( open( chrom_count_dataset.file_name ).readline() ) - attributes[ 'count' ] = chrom_count - updated = True + try: + chrom_count = int( open( chrom_count_dataset.file_name ).readline() ) + attributes[ 'count' ] = chrom_count + updated = True + except Exception, e: + log.error( "Failed to open chrom count dataset: %s", e ) if updated: user.preferences['dbkeys'] = to_json_string(dbkeys) 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.
participants (1)
-
commits-noreply@bitbucket.org