randydev commited on
Commit
fe0c8dd
1 Parent(s): b7c9de4

Upload main.py

Browse files
Files changed (1) hide show
  1. main.py +2 -3
main.py CHANGED
@@ -38,7 +38,6 @@ from typing_extensions import Annotated
38
  from typing import Annotated, Union
39
  from typing import Optional, List, Dict, Any
40
 
41
-
42
  from pydantic import BaseModel
43
  from base64 import b64decode as kc
44
  from base64 import b64decode
@@ -779,8 +778,8 @@ def gemini_pro(item: GeminiPro):
779
  "chat_history": response[1]
780
  }
781
  )
782
- except:
783
- return SuccessResponse(status="False", randydev={"message": "Error not responding"})
784
  else:
785
  if item.is_login:
786
  token = item.bard_api_key
 
38
  from typing import Annotated, Union
39
  from typing import Optional, List, Dict, Any
40
 
 
41
  from pydantic import BaseModel
42
  from base64 import b64decode as kc
43
  from base64 import b64decode
 
778
  "chat_history": response[1]
779
  }
780
  )
781
+ except Exception as e:
782
+ return SuccessResponse(status="False", randydev={"message": f"Error not responding: {e}"})
783
  else:
784
  if item.is_login:
785
  token = item.bard_api_key