tanbushi commited on
Commit
698608c
·
1 Parent(s): 5dc5e20
Files changed (1) hide show
  1. api_key_sb.py +2 -1
api_key_sb.py CHANGED
@@ -37,7 +37,8 @@ async def get_api_key_info(model: str = None):
37
  supabase.table("airs_api_keys").update({"ran_at": current_local_time}).eq("id", api_key_id).execute()
38
  print('更新成功')
39
  except Exception as e:
40
- raise HTTPException(status_code=500, detail="更新API密钥运行时间失败!")
 
41
 
42
  return api_key_info
43
  else:
 
37
  supabase.table("airs_api_keys").update({"ran_at": current_local_time}).eq("id", api_key_id).execute()
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: