Changeset 207370 in webkit


Ignore:
Timestamp:
Oct 14, 2016 9:18:19 PM (8 years ago)
Author:
Simon Fraser
Message:

REGRESSION (r206973): Running "webkit-patch suggest-reviewers" throws an AttributeError: 'NoneType' object has no attribute 'full_name'
https://bugs.webkit.org/show_bug.cgi?id=163478

Reviewed by Daniel Bates.

Handle a None other in Contributor.eq.

  • Scripts/webkitpy/common/config/committers.py:

(Contributor.eq):

Location:
trunk/Tools
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Tools/ChangeLog

    r207363 r207370  
     12016-10-14  Simon Fraser  <simon.fraser@apple.com>
     2
     3        REGRESSION (r206973): Running "webkit-patch suggest-reviewers" throws an AttributeError: 'NoneType' object has no attribute 'full_name'
     4        https://bugs.webkit.org/show_bug.cgi?id=163478
     5
     6        Reviewed by Daniel Bates.
     7       
     8        Handle a None other in Contributor.__eq__.
     9
     10        * Scripts/webkitpy/common/config/committers.py:
     11        (Contributor.__eq__):
     12
    1132016-10-14  JF Bastien  <jfbastien@apple.com>
    214
  • trunk/Tools/Scripts/webkitpy/common/config/committers.py

    r207350 r207370  
    7777
    7878    def __eq__(self, other):
    79         return (self.full_name == other.full_name
     79        return (other is not None
     80            and self.full_name == other.full_name
    8081            and self.emails == other.emails
    8182            and self._case_preserved_emails == other._case_preserved_emails
Note: See TracChangeset for help on using the changeset viewer.