We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 02c4b8b commit 512b900Copy full SHA for 512b900
snakedeploy/prs.py
@@ -5,7 +5,6 @@
5
from tenacity import retry
6
from urllib3.util.retry import Retry
7
8
-import github
9
from github import Github, GithubException
10
11
from snakedeploy.exceptions import UserError
@@ -83,7 +82,7 @@ def create(self):
83
82
try:
84
# try to get sha if file exists
85
sha = self.repo.get_contents(file.path, self.branch).sha
86
- except github.GithubException.UnknownObjectException as e:
+ except GithubException.UnknownObjectException as e:
87
if e.status != 404:
88
raise e
89
elif file.is_updated:
0 commit comments