| skipped 30 lines |
31 | 31 | | self.pool.join() |
32 | 32 | | except Exception as e: |
33 | 33 | | self.pool.terminate() |
34 | | - | self.wfile.write('{{"SEARCH":"ERROR", "RESULTS":"{}"}}'.format(e).encode()) |
| 34 | + | self.wfile.write('[-] Exception Caught: {}'.format(e).encode()) |
35 | 35 | | print("[-] Exception Caught: {}".format(e)) |
36 | 36 | | self.pool.join() |
37 | 37 | | |
| skipped 6 lines |
44 | 44 | | if all([term in rows["description"] for term in query]): |
45 | 45 | | output.append('\t'.join((rows["description"], rows["file"]))) |
46 | 46 | | if output: |
47 | | - | return "\n".join(("[ ] " + query, *output)) |
| 47 | + | return "[ ] " + "\n".join([' '.join(query), *output]) |
48 | 48 | | |
49 | 49 | | |
50 | 50 | | |
| skipped 45 lines |