Skip to content

Commit

Permalink
fix GithubException import and exception handling (fixes #172)
Browse files Browse the repository at this point in the history
  • Loading branch information
TimidRobot committed Jul 18, 2023
1 parent b0c5456 commit 1144c7f
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 1144c7f

Please sign in to comment.