Commit f2a0e61d authored by Travis Fischer's avatar Travis Fischer Committed by GitHub

Merge pull request #139 from waylaidwanderer/fix/remove-unnecessary-console-logging

parents d598482f 5170641e
...@@ -231,14 +231,12 @@ async function checkForChatGPTAtCapacity(page: Page) { ...@@ -231,14 +231,12 @@ async function checkForChatGPTAtCapacity(page: Page) {
try { try {
res = await page.$('[role="alert"]') res = await page.$('[role="alert"]')
console.log('capacity text', res)
} catch (err) { } catch (err) {
// ignore errors likely due to navigation // ignore errors likely due to navigation
console.warn(err.toString())
} }
if (res) { if (res) {
const error = new types.ChatGPTError('ChatGPT is at capacity') const error = new types.ChatGPTError(`ChatGPT is at capacity: ${res}`)
error.statusCode = 503 error.statusCode = 503
throw error throw error
} }
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment