diff --git a/app/workers/github_repos/repo_sync_worker.rb b/app/workers/github_repos/repo_sync_worker.rb index 8a836f456..a31be49f5 100644 --- a/app/workers/github_repos/repo_sync_worker.rb +++ b/app/workers/github_repos/repo_sync_worker.rb @@ -27,7 +27,7 @@ module GithubRepos info_hash: fetched_repo.to_hash, ) repo.user&.touch(:github_repos_updated_at) - rescue Github::Errors::NotFound + rescue Github::Errors::NotFound, Github::Errors::Unauthorized repo.destroy end end