Skip to content

Commit

Permalink
Fix: Exception in thread & KeyError: 'displayName'
Browse files Browse the repository at this point in the history
  • Loading branch information
ramon-victor committed Jun 1, 2023
1 parent ebc10fa commit 1207bb5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions gpt4free/quora/api.py
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,9 @@ def get_bots(self, download_next_data=True):
else:
next_data = self.next_data

if not "availableBots" in self.viewer:
if not "viewerBotList" in self.viewer:
raise RuntimeError("Invalid token or no bots are available.")
bot_list = self.viewer["availableBots"]
bot_list = self.viewer["viewerBotList"]

threads = []
bots = {}
Expand Down

0 comments on commit 1207bb5

Please sign in to comment.