Skip to content

Commit

Permalink
prevent error when projects are not found
Browse files Browse the repository at this point in the history
if that project doesn't exists,
it's probably wrong in the commit
then script outputs info but
should not stop for others
  • Loading branch information
k3muri84 committed Nov 10, 2021
1 parent 34aa8ba commit 4ff0631
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion generate-changelog.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,7 +107,12 @@ def collect_project(issue_id):
def create_versions(release_version):
for project in projects:
version_exists = False
versions = jira.project_versions(project)
try:
versions = jira.project_versions(project)
except JIRAError as e:
print("Could not find project: " + project)
continue

for version in versions:
if version.name == release_version.name:
version_exists = True
Expand Down

0 comments on commit 4ff0631

Please sign in to comment.