Bug 137410

Summary: Bugzilla status bubble displays an exception showing attachment 175738
Product: WebKit Reporter: Alexey Proskuryakov <ap>
Component: Tools / TestsAssignee: Alexey Proskuryakov <ap>
Status: RESOLVED FIXED    
Severity: Normal CC: rniwa
Priority: P2    
Version: 528+ (Nightly build)   
Hardware: Unspecified   
OS: Unspecified   
URL: http://webkit-queues.appspot.com/status-bubble/175738
Attachments:
Description Flags
proposed fix thorton: review+

Description Alexey Proskuryakov 2014-10-03 15:51:48 PDT
This old attachment has an incorrect status queue log. We should be tolerant of that.
Comment 1 Alexey Proskuryakov 2014-10-03 15:54:20 PDT
Created attachment 239247 [details]
proposed fix
Comment 2 Tim Horton 2014-10-03 16:33:22 PDT
Comment on attachment 239247 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=239247&action=review

> Tools/QueueStatusServer/app.yaml:2
> +version: ap # Bugzilla bug ID of last major change

please fix the comment.

> Tools/QueueStatusServer/handlers/statusbubble.py:141
> +                message_to_display = statuses[1].message if len(statuses) > 1 else statuses[0].message

IIRC 'if statuses' is sufficient (an empty list evaluates to false) but this is probably clearer
Comment 3 Alexey Proskuryakov 2014-10-03 16:37:08 PDT
Committed <http://trac.webkit.org/r174303>.
Comment 4 Tim Horton 2014-10-03 16:37:43 PDT
Comment on attachment 239247 [details]
proposed fix

View in context: https://bugs.webkit.org/attachment.cgi?id=239247&action=review

>> Tools/QueueStatusServer/handlers/statusbubble.py:141
>> +                message_to_display = statuses[1].message if len(statuses) > 1 else statuses[0].message
> 
> IIRC 'if statuses' is sufficient (an empty list evaluates to false) but this is probably clearer

Nevermind!
Comment 5 Alexey Proskuryakov 2014-10-03 16:49:20 PDT
Actually committed in 174304