dlflannery commited on
Commit
35f5401
·
verified ·
1 Parent(s): 20190f7

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -37,8 +37,8 @@ def chat(prompt, user_window, pwd_window, past, response, gptModel):
37
  f.write(f'{user_window}: {len(response)} chars\n')
38
  with open(dataLogFilePath) as f:
39
  response += '\n' + f.read()
40
- except:
41
- response += f"\nDATA LOG FAILED, path = {dataLogFilePath}"
42
  return [past, response, None]
43
  else:
44
  return [[], "User name and/or password are incorrect" + '\npwds = ' + ','.join(pwdList) + 'pwd= ' + pwd_window + ' user= '+user_window, prompt]
 
37
  f.write(f'{user_window}: {len(response)} chars\n')
38
  with open(dataLogFilePath) as f:
39
  response += '\n' + f.read()
40
+ except Exception as e:
41
+ response += f"\nDATA LOG FAILED, path = {dataLogFilePath},\nmsg = {e}"
42
  return [past, response, None]
43
  else:
44
  return [[], "User name and/or password are incorrect" + '\npwds = ' + ','.join(pwdList) + 'pwd= ' + pwd_window + ' user= '+user_window, prompt]