mirror of
https://github.com/snapotter-hq/SnapOtter.git
synced 2026-08-03 07:46:42 +02:00
fix: address code review findings before merge
- Warn on startup if deprecated STIRLING_VARIANT env var is set - Broaden upscale.py exception handling to catch RuntimeError/OSError for Lanczos fallback (not just ImportError) - Add QEMU + multi-arch (amd64+arm64) to CI Docker build test - Use .get() instead of .all() for single-row health check query - Restore container_name in docker-compose.yml for backwards compat
This commit is contained in:
@@ -78,8 +78,8 @@ def main():
|
||||
emit_progress(95, "Saving result")
|
||||
result.save(output_path)
|
||||
method = "realesrgan"
|
||||
except ImportError:
|
||||
# RealESRGAN not installed - fall back to Lanczos
|
||||
except (ImportError, FileNotFoundError, RuntimeError, OSError):
|
||||
# RealESRGAN unavailable or failed - fall back to Lanczos
|
||||
emit_progress(50, "Upscaling with Lanczos")
|
||||
img_upscaled = img.resize(new_size, Image.LANCZOS)
|
||||
emit_progress(95, "Saving result")
|
||||
|
||||
Reference in New Issue
Block a user