mirror of
https://github.com/willmiao/ComfyUI-Lora-Manager.git
synced 2026-06-09 20:39:25 -03:00
fix(recipe): treat transient server errors (524/5xx) as non-fatal in image info fetch
Extend _is_transient_server_error() check introduced in 15dfaed4 to
get_image_info(), so Cloudflare 524 and generic 5xx errors during
remote recipe import are logged as info instead of error and do not
produce scary tracebacks.
Same pattern as get_model_versions() - transient upstream failures
return None gracefully rather than being logged as errors.
This commit is contained in:
@@ -562,6 +562,13 @@ class CivitaiClient:
|
|||||||
if not success:
|
if not success:
|
||||||
if is_expected_offline_error(result):
|
if is_expected_offline_error(result):
|
||||||
return None
|
return None
|
||||||
|
if self._is_transient_server_error(str(result)):
|
||||||
|
logger.info(
|
||||||
|
"Transient server error fetching image info for ID %s: %s",
|
||||||
|
image_id,
|
||||||
|
result,
|
||||||
|
)
|
||||||
|
return None
|
||||||
logger.error(
|
logger.error(
|
||||||
"Failed to fetch image info for ID %s from civitai.red: %s",
|
"Failed to fetch image info for ID %s from civitai.red: %s",
|
||||||
image_id,
|
image_id,
|
||||||
|
|||||||
Reference in New Issue
Block a user