Spaces:
Running
on
Zero
Running
on
Zero
Update app.py
Browse filesMinor adjust in search api
app.py
CHANGED
|
@@ -337,9 +337,9 @@ def SearchFiles(message):
|
|
| 337 |
|
| 338 |
try:
|
| 339 |
FoundScripts = search(Question)
|
| 340 |
-
except:
|
| 341 |
-
|
| 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 |
|