Skip to content

Commit

Permalink
Let's actually put the thing in the correct place
Browse files Browse the repository at this point in the history
  • Loading branch information
cheese3660 committed Feb 3, 2024
1 parent bf2d748 commit 73d9cc0
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions netkan/netkan/spacedock_adder.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,7 +134,7 @@ def make_spacedock_netkan(self, ident: str, info: Dict[str, Any]) -> Dict[str, A
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 All @@ -155,10 +155,10 @@ def get_github_repo(self, source_link: str) -> Optional[Repository]:
sections = source_link.strip('/').split('/')
repo_name = sections[-2] + '/' + sections[-1]
g = Github()
try: # pylint: disable=broad-except
# Tell Discord about the problem and move on
try:
return g.get_repo(repo_name)
except Exception as exc:
except Exception as exc: # pylint: disable=broad-except
# Tell Discord about the problem and move on
logging.error('%s failed to get the github repository from spacedock source url %s', self.__class__.__name__, source_link, exc_info=exc)
return None
else:
Expand Down

0 comments on commit 73d9cc0

Please sign in to comment.