| skipped 34 lines |
35 | 35 | | print('[-] No results for: {}'.format(' '.join(term))) |
36 | 36 | | |
37 | 37 | | print('[$] Closing connection from {}\n'.format(self.client_address[0])) |
| 38 | + | except Exception as e: |
| 39 | + | self.wfile.write(b'{{"SEARCH":"ERROR", "RESULTS":"{}"}}'.format(e)) |
| 40 | + | print("[-] Exception Caught: {}".format(e)) |
38 | 41 | | |
39 | 42 | | def search(data): |
40 | 43 | | try: |
| skipped 47 lines |