def handle_error(self, request, client_address): """Handle errors gracefully. """ print 'Exception happened during processing of request from %s' % client_address print 'Request was: %s' % request