Surface programming errors in user fetches
This commit is contained in:
+1
-1
@@ -162,7 +162,7 @@ async def _fetch_source_username(
|
||||
) -> tuple[str, tuple[dict[str, int], bool] | Exception]:
|
||||
try:
|
||||
return username, await _fetch_with_cache(cache, key, fetcher)
|
||||
except Exception as exc:
|
||||
except (GitHubSourceError, GiteaSourceError) as exc:
|
||||
return username, exc
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user