Skip to content

Commit dfcc5a4

Browse files
removed error handling
Signed-off-by: Sachin Panayil <[email protected]>
1 parent 675b732 commit dfcc5a4

File tree

1 file changed

+1
-4
lines changed

1 file changed

+1
-4
lines changed

main.py

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
import os
55

66
from typing import Dict, Optional
7-
from github import Github, Repository, UnknownObjectException, GithubException
7+
from github import Github, Repository, GithubException
88

99
class IndexGenerator:
1010
def __init__(self, agency: str, verison: str, token: Optional[str] = None,):
@@ -23,9 +23,6 @@ def __init__(self, agency: str, verison: str, token: Optional[str] = None,):
2323
def get_code_json(self, repo: Repository) -> Optional[Dict]:
2424
try:
2525
content = repo.get_contents("code.json", ref = "main")
26-
except UnknownObjectException:
27-
print("Unknown object has been found")
28-
return None
2926
except GithubException:
3027
print("Problem with GitHub")
3128
return None

0 commit comments

Comments
 (0)