mikeee commited on
Commit
f1685a2
·
1 Parent(s): ed68790

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -198,7 +198,7 @@ if ask:
198
  logger.info(f"answer: {answer}")
199
  except Exception as exc:
200
  logger.error(exc)
201
- if "<empty message>" in srt(exc):
202
  _ = " (invalid api key?)"
203
  else:
204
  _ = ""
 
198
  logger.info(f"answer: {answer}")
199
  except Exception as exc:
200
  logger.error(exc)
201
+ if "<empty message>" in str(exc):
202
  _ = " (invalid api key?)"
203
  else:
204
  _ = ""