Skip to content

Commit

Permalink
Missed a spot (vscode should help me more here :/)
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Feb 3, 2024
1 parent 8dd5724 commit bf2d748
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions netkan/netkan/spacedock_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -155,7 +155,8 @@ def get_github_repo(self, source_link: str) -> Optional[Repository]:
sections = source_link.strip('/').split('/')
repo_name = sections[-2] + '/' + sections[-1]
g = Github()
try:
try: # pylint: disable=broad-except
# Tell Discord about the problem and move on
return g.get_repo(repo_name)
except Exception as exc:
logging.error('%s failed to get the github repository from spacedock source url %s', self.__class__.__name__, source_link, exc_info=exc)
Expand All @@ -182,7 +183,7 @@ def make_github_netkan(self, ident: str, gh_repo: Repository, info: Dict[str, An
try:
mod = ModAnalyzer(ident, url, self.game)
props = mod.get_netkan_properties() if mod else {}
except Exception as exc: # pylint: disable=broad-except
except Exception as exc: # pylint: disable=broad-except
# Tell Discord about the problem and move on
logging.error('%s failed to analyze %s from %s',
self.__class__.__name__, ident, url, exc_info=exc)
Expand Down

0 comments on commit bf2d748

Please sign in to comment.