commit/galaxy-central: davebgx: Set time to epoch instead of throwing server error if repository_metadata.time_last_tested is unset.
1 new commit in galaxy-central: https://bitbucket.org/galaxy/galaxy-central/commits/89ea937034b8/ Changeset: 89ea937034b8 User: davebgx Date: 2015-01-29 16:23:35+00:00 Summary: Set time to epoch instead of throwing server error if repository_metadata.time_last_tested is unset. Affected #: 1 file diff -r c805913c4646238890e727a5f1c203058c6413b6 -r 89ea937034b80e7cad24005ffb018f2b1c4f5f65 lib/galaxy/webapps/tool_shed/controllers/repository.py --- a/lib/galaxy/webapps/tool_shed/controllers/repository.py +++ b/lib/galaxy/webapps/tool_shed/controllers/repository.py @@ -1696,7 +1696,10 @@ description_lines = [] # Per the RSS 2.0 specification, all dates in RSS feeds must be formatted as specified in RFC 822 # section 5.1, e.g. Sat, 07 Sep 2002 00:00:01 UT - time_tested = repository_metadata.time_last_tested.strftime( '%a, %d %b %Y %H:%M:%S UT' ) + if repository_metadata.time_last_tested is None: + time_tested = 'Thu, 01 Jan 1970 00:00:00 UT' + else: + time_tested = repository_metadata.time_last_tested.strftime( '%a, %d %b %Y %H:%M:%S UT' ) # Generate a citable URL for this repository with owner and changeset revision. repository_citable_url = common_util.url_join( tool_shed_url, 'view', 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