Skip to content

Commit

Permalink
[webkitbugspy] Gracefully handle null duplicate
Browse files Browse the repository at this point in the history
https://bugs.webkit.org/show_bug.cgi?id=263694
rdar://117502065

Reviewed by Elliott Williams.

* Tools/Scripts/libraries/webkitbugspy/setup.py: Bump version.
* Tools/Scripts/libraries/webkitbugspy/webkitbugspy/__init__.py: Ditto.
* Tools/Scripts/libraries/webkitbugspy/webkitbugspy/radar.py:
(Tracker.populate): If the provided relationship object doesn't define a
related radar, skip that relationship.

Canonical link: https://commits.webkit.org/270922@main
  • Loading branch information
JonWBedard committed Nov 18, 2023
1 parent 88a259f commit 7812e1f
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Tools/Scripts/libraries/webkitbugspy/setup.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ def readme():

setup(
name='webkitbugspy',
version='0.14.0',
version='0.14.1',
description='Library containing a shared API for various bug trackers.',
long_description=readme(),
classifiers=[
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,7 @@ def _maybe_add_library_path(path):
"Please install webkitcorepy with `pip install webkitcorepy --extra-index-url <package index URL>`"
)

version = Version(0, 14, 0)
version = Version(0, 14, 1)

from .user import User
from .issue import Issue
Expand Down
3 changes: 2 additions & 1 deletion Tools/Scripts/libraries/webkitbugspy/webkitbugspy/radar.py
Original file line number Diff line number Diff line change
Expand Up @@ -277,7 +277,8 @@ def populate(self, issue, member=None):
if member == 'duplicates':
issue._duplicates = []
for r in radar.relationships([self.radarclient().Relationship.TYPE_ORIGINAL_OF]):
issue._duplicates.append(self.issue(r.related_radar.id))
if r.related_radar:
issue._duplicates.append(self.issue(r.related_radar.id))

return issue

Expand Down

0 comments on commit 7812e1f

Please sign in to comment.