Spaces:
Runtime error
Runtime error
Update app.py
Browse files557 unmodified lines558559560561562563564565424 unmodified lines990991992993994995996557 unmodified linescnx.close()logging.info(f"Document {documentName} uploaded successfully")#return JSONResponse(status_code=200, content={"message": "Data saved successfully", "row_id": row_id})return RedirectResponse(url="/knowledgebase", status_code=302)except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")424 unmodified linescursor.close()cnx.close()logging.info(f"Data_connectors for {APIName} inserted successfully")return RedirectResponse(url="/data_connectors", status_code=302)except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")557 unmodified lines558559560561562563564565424 unmodified lines990991992993994995996997557 unmodified linescnx.close()logging.info(f"Document {documentName} uploaded successfully")return JSONResponse(status_code=200, content={"message": "Data saved successfully", "row_id": row_id})#return RedirectResponse(url="/knowledgebase", status_code=302)except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")424 unmodified linescursor.close()cnx.close()logging.info(f"Data_connectors for {APIName} inserted successfully")return JSONResponse(status_code=200, content={"message": "Data saved successfully", "row_id": row_id})#return RedirectResponse(url="/data_connectors", status_code=302)except mysql.connector.Error as err:logging.error(f"Database error: {err}")raise HTTPException(status_code=500, detail="Internal Server Error")
app.py+4-3