Spaces:
Running
Running
update
Browse files- api_key_sb.py +1 -1
api_key_sb.py
CHANGED
|
@@ -38,7 +38,7 @@ async def get_api_key_info(model: str = None):
|
|
| 38 |
print('更新成功')
|
| 39 |
except Exception as e:
|
| 40 |
# raise HTTPException(status_code=500, detail="更新API密钥运行时间失败!")
|
| 41 |
-
|
| 42 |
|
| 43 |
return api_key_info
|
| 44 |
else:
|
|
|
|
| 38 |
print('更新成功')
|
| 39 |
except Exception as e:
|
| 40 |
# raise HTTPException(status_code=500, detail="更新API密钥运行时间失败!")
|
| 41 |
+
raise HTTPException(status_code=500, detail=f"更新API密钥运行时间失败!错误信息:{str(e)}")
|
| 42 |
|
| 43 |
return api_key_info
|
| 44 |
else:
|