Skip to content

Commit

Permalink
Excluded master and develop from release imports. Reduced 404 error t…
Browse files Browse the repository at this point in the history
…o warning. (#1550)
  • Loading branch information
daveoconnor committed Jan 10, 2025
1 parent c9f4d36 commit 7d458d4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 4 deletions.
4 changes: 1 addition & 3 deletions core/githubhelper.py
Original file line number Diff line number Diff line change
Expand Up @@ -311,9 +311,7 @@ def get_libraries_json(self, repo_slug: str, tag: str = "master"):
# This usually happens because the library does not have a `meta/libraries.json`
# in the requested tag. More likely to happen with older versions of libraries.
except requests.exceptions.HTTPError:
self.logger.exception(
"get_library_metadata_failed", repo=repo_slug, url=url
)
self.logger.warning(f"get_library_metadata_failed {repo_slug=}, {url=}")
return None
else:
return response.json()
Expand Down
2 changes: 1 addition & 1 deletion versions/tasks.py
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ def import_versions(
def import_release_notes():
"""Imports release notes from the existing rendered
release notes in the repository."""
for version in Version.objects.active():
for version in Version.objects.exclude(name__in=["master", "develop"]).active():
store_release_notes_task.delay(str(version.pk))
store_release_notes_in_progress_task.delay()

Expand Down

0 comments on commit 7d458d4

Please sign in to comment.