commit/galaxy-central: Dave Bouvier: Additional check for the existence of a key before attempting to delete it.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/caf63d089c00/ Changeset: caf63d089c00 User: Dave Bouvier Date: 2013-11-08 22:18:57 Summary: Additional check for the existence of a key before attempting to delete it. Affected #: 1 file diff -r 6f79d5ad4816efa4523ca942a28d8a8aa03fb68e -r caf63d089c0034385757e6c20337a1d244434eb5 lib/galaxy/datatypes/registry.py --- a/lib/galaxy/datatypes/registry.py +++ b/lib/galaxy/datatypes/registry.py @@ -490,7 +490,8 @@ if converter.id in toolbox.tools_by_id: del toolbox.tools_by_id[ converter.id ] if source_datatype in self.datatype_converters: - del self.datatype_converters[ source_datatype ][ target_datatype ] + if target_datatype in self.datatype_converters[ source_datatype ]: + del self.datatype_converters[ source_datatype ][ target_datatype ] self.log.debug( "Deactivated converter: %s", converter.id ) else: toolbox.tools_by_id[ converter.id ] = converter 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