diff --git a/api/features/feature_external_resources/views.py b/api/features/feature_external_resources/views.py index 641074215fe6..002a8e5da89a 100644 --- a/api/features/feature_external_resources/views.py +++ b/api/features/feature_external_resources/views.py @@ -82,9 +82,9 @@ def create(self, request, *args, **kwargs): status=status.HTTP_400_BAD_REQUEST, ) - match = re.search(pattern, url) - if match: - owner, repo, issue = match.groups() + url_match = re.search(pattern, url) + if url_match: + owner, repo, issue = url_match.groups() if GithubRepository.objects.get( github_configuration=github_configuration, repository_owner=owner,