File tree Expand file tree Collapse file tree 1 file changed +12
-3
lines changed
Expand file tree Collapse file tree 1 file changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -300,9 +300,18 @@ def create_product_from_installation_repositories(data):
300300 with tenant_context (tenant ):
301301 rpc = github_rpc_from_inst (installation )
302302 for repo in data .payload ['repositories_added' ]:
303- repo_object = rpc .get_repo (repo ['full_name' ])
304- _product_from_repo (repo_object )
305- _bugtracker_from_repo (repo_object )
303+ try :
304+ repo_object = rpc .get_repo (repo ['full_name' ])
305+ _product_from_repo (repo_object )
306+ _bugtracker_from_repo (repo_object )
307+ except github .UnknownObjectException :
308+ # KIWI-TCMS-EA
309+ # https://sentry.io/organizations/kiwitcms/issues/1869016907/
310+ # Not sure when & how this happens, the repo is accessible on GitHub but
311+ # it is a fork, not a source repo.
312+ # In any case, if we can't get the data from GitHub there's nothing
313+ # we can do here!
314+ continue
306315
307316
308317def create_installation (data ):
You can’t perform that action at this time.
0 commit comments