Skip to content

Commit 512b900

Browse files
committed
Clean up
1 parent 02c4b8b commit 512b900

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

snakedeploy/prs.py

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@
55
from tenacity import retry
66
from urllib3.util.retry import Retry
77

8-
import github
98
from github import Github, GithubException
109

1110
from snakedeploy.exceptions import UserError
@@ -83,7 +82,7 @@ def create(self):
8382
try:
8483
# try to get sha if file exists
8584
sha = self.repo.get_contents(file.path, self.branch).sha
86-
except github.GithubException.UnknownObjectException as e:
85+
except GithubException.UnknownObjectException as e:
8786
if e.status != 404:
8887
raise e
8988
elif file.is_updated:

0 commit comments

Comments
 (0)