Update README for CivitAI API key instructions, bump version to 0.7.1, and enhance error handling in API routes

This commit is contained in:
Will Miao
2025-02-20 08:29:03 +08:00
parent b7c8b11e98
commit 3fa8bae205
3 changed files with 13 additions and 1 deletions

View File

@@ -498,6 +498,10 @@ class ApiRoutes:
relative_path=data.get('relative_path'),
progress_callback=progress_callback # Add progress callback
)
if not result.get('success', False):
return web.Response(status=500, text=result.get('error', 'Unknown error'))
return web.json_response(result)
except Exception as e:
logger.error(f"Error downloading LoRA: {e}")