Skip to content

Commit

Permalink
Merge pull request #174 from creativecommons/fix172
Browse files Browse the repository at this point in the history
fix GithubException import and exception handling
  • Loading branch information
TimidRobot authored Jul 18, 2023
2 parents b9c73bc + 1144c7f commit 45163e6
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion move_closed_issues.py
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,9 @@
import sys
import traceback

# Third-party
from github import GithubException

# First-party/Local
import ccos.log
from ccos import gh_utils
Expand Down Expand Up @@ -76,7 +79,7 @@ def move_cards(args, github, backlog, done):
content_id=content.id, content_type="Issue"
)
LOG.info(f" -> added to Active Sprint: {done.name}")
except github.GithubException as e:
except GithubException as e:
if e.data["errors"][0]["message"] != (
"Project already has the associated issue"
):
Expand Down

0 comments on commit 45163e6

Please sign in to comment.