diff --git a/dnsrewriteproxy.py b/dnsrewriteproxy.py index 18b7da2..ae4be4b 100644 --- a/dnsrewriteproxy.py +++ b/dnsrewriteproxy.py @@ -101,10 +101,6 @@ def DnsProxy( {'dnsrewriteproxy_requestid': ''.join(choices(request_id_alphabet, k=8))}) request_logger.info('Received request from %s', addr) await upstream_queue.put((request_logger, request_data, addr)) - except CancelledError: - pass - except Exception: - logger.exception('Error in main loop') finally: logger.info('Stopping: waiting for requests to finish') await upstream_queue.join()