commit/galaxy-central: dan: Fix for 2ee4a6b8419b where chromInfo from custom dbkeys when no custom dbkeys have been defined would cause an error.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/changeset/1638bc414549/ changeset: 1638bc414549 user: dan date: 2011-11-30 23:22:30 summary: Fix for 2ee4a6b8419b where chromInfo from custom dbkeys when no custom dbkeys have been defined would cause an error. affected #: 1 file diff -r c6f70cccce287702f18c518175bec4a5e8ace23c -r 1638bc41454922e24dfa5e01d840fbf5ea505782 lib/galaxy/tools/actions/__init__.py --- a/lib/galaxy/tools/actions/__init__.py +++ b/lib/galaxy/tools/actions/__init__.py @@ -192,7 +192,7 @@ incoming[ "chromInfo" ] = db_dataset.file_name else: # For custom builds, chrom info resides in converted dataset; for built-in builds, chrom info resides in tool-data/shared. - if trans.user and ( input_dbkey in trans.user.preferences[ 'dbkeys' ] ): + if trans.user and ( 'dbkeys' in trans.user.preferences ) and ( input_dbkey in trans.user.preferences[ 'dbkeys' ] ): # Custom build. custom_build_dict = from_json_string( trans.user.preferences[ 'dbkeys' ] )[ input_dbkey ] build_fasta_dataset = trans.app.model.HistoryDatasetAssociation.get( custom_build_dict[ 'fasta' ] ) 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)
-
Bitbucket