rrg92 commited on
Commit
c40b095
·
verified ·
1 Parent(s): c2b21e8

Update app.py

Browse files

Minor adjust in search api

Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -337,9 +337,9 @@ def SearchFiles(message):
337
 
338
  try:
339
  FoundScripts = search(Question)
340
- except:
341
- return m("Houve alguma falha ao executar a consulta no banco. Tente novamente. Se persistir, veja orientações na aba Help!")
342
- return;
343
 
344
  doclist = [doc['ScriptContent'] for doc in FoundScripts]
345
 
 
337
 
338
  try:
339
  FoundScripts = search(Question)
340
+ except Exception as e:
341
+ print(e)
342
+ return "Houve alguma falha ao executar a consulta no banco. Tente novamente. Se persistir, veja orientações na aba Help!"
343
 
344
  doclist = [doc['ScriptContent'] for doc in FoundScripts]
345