commit/galaxy-central: greg: Make sure a valid object is received when checking certification the Tool Shed's new repository registry.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/cc9164a8b545/ Changeset: cc9164a8b545 User: greg Date: 2014-05-21 18:29:33 Summary: Make sure a valid object is received when checking certification the Tool Shed's new repository registry. Affected #: 1 file diff -r 7eaa7e058c2898b10674b4ca43a0a76e566517c3 -r cc9164a8b545afe0d4132f31d627609ba941d1cb lib/tool_shed/repository_registry.py --- a/lib/tool_shed/repository_registry.py +++ b/lib/tool_shed/repository_registry.py @@ -114,14 +114,17 @@ return ( None, False ) def is_level_one_certified( self, repository_metadata ): - repository = repository_metadata.repository - if repository.deprecated or repository.deleted: - return False - tuple = ( str( repository.name ), str( repository.user.username ), str( repository_metadata.changeset_revision ) ) - if repository.type in [ rt_util.REPOSITORY_SUITE_DEFINITION ]: - return tuple in self.certified_level_one_suite_tuples - else: - return tuple in self.certified_level_one_repository_and_suite_tuples + if repository_metadata: + repository = repository_metadata.repository + if repository: + if repository.deprecated or repository.deleted: + return False + tuple = ( str( repository.name ), str( repository.user.username ), str( repository_metadata.changeset_revision ) ) + if repository.type in [ rt_util.REPOSITORY_SUITE_DEFINITION ]: + return tuple in self.certified_level_one_suite_tuples + else: + return tuple in self.certified_level_one_repository_and_suite_tuples + return False def load_repository_and_suite_tuples( self ): # Load self.certified_level_one_repository_and_suite_tuples and self.certified_level_one_suite_tuples. 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