This commit is contained in:
Timothy Jaeryang Baek 2025-07-28 11:31:06 +04:00
parent 0c5fbdedd8
commit 49a6211d36

View file

@ -146,15 +146,14 @@ async def sync_functions(
function.id, function.id,
content=function.content, content=function.content,
) )
return Functions.sync_functions(user.id, form_data.functions)
except Exception as e: except Exception as e:
log.exception(f"Failed to load a function: {e}") log.exception(f"Failed to load a function: {e}")
raise HTTPException( raise HTTPException(
status_code=status.HTTP_400_BAD_REQUEST, status_code=status.HTTP_400_BAD_REQUEST,
detail=ERROR_MESSAGES.DEFAULT(e), detail=ERROR_MESSAGES.DEFAULT(e),
) )
return Functions.sync_functions(user.id, form_data.functions)
############################ ############################