MCPcopy Create free account
hub / github.com/crisxuan/bestJavaer / remote_error_message

Function remote_error_message

scripts/check_article_quality.py:339–342  ·  view source on GitHub ↗
(error: BaseException)

Source from the content-addressed store, hash-verified

337
338
339def remote_error_message(error: BaseException) -> str:
340 if isinstance(error, URLError):
341 return f"remote image is unreachable: {error.reason}"
342 return f"remote image is unreachable: {error}"
343
344
345def image_issue(article_path: Path, ref: ImageRef, *, staged: bool, args: argparse.Namespace, root: Path) -> str | None:

Callers 1

request_remote_imageFunction · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected