Skip to content

Commit

Permalink
Update script.py
Browse files Browse the repository at this point in the history
  • Loading branch information
T-Kukawka authored Jan 29, 2025
1 parent d666dc4 commit 51b8f41
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions scripts/aggregate-changelogs/script.py
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
from dateutil.parser import parse
import git
from github import Github
from github.GithubException import UnknownObjectException
from github.GithubException import UnknownObjectException, GithubException
from yaml import load, dump, CLoader, CDumper

CONFIG_PATH = sys.argv[1]
Expand Down Expand Up @@ -55,7 +55,7 @@ def get_changelog_file(client, repo_shortname):
try:
remote_file = repo.get_contents('CHANGELOG.md')
return remote_file.decoded_content.decode('utf-8')
except UnknownObjectException:
except (UnknownObjectException, GithubException) as e:
return None

def parse_changelog(body, repo_shortname):
Expand Down

0 comments on commit 51b8f41

Please sign in to comment.