JLW commited on
Commit
e5ecb05
·
1 Parent(s): c8f82bd

Try to identify condition in which users seemingly in error get the "Please paste API key message"

Browse files
Files changed (1) hide show
  1. app.py +2 -1
app.py CHANGED
@@ -283,7 +283,8 @@ def run_chain(chain, inp, capture_hidden_text):
283
  try:
284
  output = chain.run(input=inp)
285
  except AuthenticationError as ae:
286
- output = AUTH_ERR_MSG
 
287
  except RateLimitError as rle:
288
  output = "\n\nRateLimitError: " + str(rle)
289
  except ValueError as ve:
 
283
  try:
284
  output = chain.run(input=inp)
285
  except AuthenticationError as ae:
286
+ output = AUTH_ERR_MSG + str(datetime.datetime.now()) + ". " + str(ae)
287
+ print("output", output)
288
  except RateLimitError as rle:
289
  output = "\n\nRateLimitError: " + str(rle)
290
  except ValueError as ve: