Skip to content

Commit 45163e6

Browse files
authored
Merge pull request #174 from creativecommons/fix172
fix GithubException import and exception handling
2 parents b9c73bc + 1144c7f commit 45163e6

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

move_closed_issues.py

+4-1
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@
99
import sys
1010
import traceback
1111

12+
# Third-party
13+
from github import GithubException
14+
1215
# First-party/Local
1316
import ccos.log
1417
from ccos import gh_utils
@@ -76,7 +79,7 @@ def move_cards(args, github, backlog, done):
7679
content_id=content.id, content_type="Issue"
7780
)
7881
LOG.info(f" -> added to Active Sprint: {done.name}")
79-
except github.GithubException as e:
82+
except GithubException as e:
8083
if e.data["errors"][0]["message"] != (
8184
"Project already has the associated issue"
8285
):

0 commit comments

Comments
 (0)