mirror of
https://github.com/open-webui/open-webui.git
synced 2026-09-13 23:14:11 +00:00
refac
This commit is contained in:
parent
75b1836322
commit
a910b0d8f6
1 changed files with 4 additions and 1 deletions
|
|
@ -436,7 +436,10 @@ async def get_models(request: Request, user=Depends(get_verified_user)):
|
|||
)
|
||||
)
|
||||
except Exception as e:
|
||||
log.exception(f'Failed to list image generation models: {e}')
|
||||
log.error(
|
||||
f'Failed to list image generation models: {str(e) or type(e).__name__}',
|
||||
exc_info=not isinstance(e, (aiohttp.ClientConnectionError, TimeoutError)),
|
||||
)
|
||||
raise HTTPException(
|
||||
status_code=400,
|
||||
detail=ERROR_MESSAGES.DEFAULT(e, 'Failed to retrieve image generation models'),
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue