From c27b5ce6055cda21f43f24d1e72d3ac626373967 Mon Sep 17 00:00:00 2001 From: Dylan Katz Date: Sun, 19 May 2019 17:16:33 -0700 Subject: [PATCH] Fixed pattern.pattern issue --- src/lh/server/probe_server.py | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/lh/server/probe_server.py b/src/lh/server/probe_server.py index 4dfa220..38bb049 100644 --- a/src/lh/server/probe_server.py +++ b/src/lh/server/probe_server.py @@ -163,16 +163,16 @@ def handle_client(self, client, address): # Try with small/normal size, then try a larger pattern limit if we hit a value error. try: - response = self.small_gen.xeger(pattern.pattern) + response = self.small_gen.xeger(pattern) except ValueError: logging.warning( 'Unable to generate small response for repeat in regex "%s". Trying larger generator...', - pattern.pattern) + pattern) try: - response = self.large_gen.xeger(pattern.pattern) + response = self.large_gen.xeger(pattern) except ValueError: logging.error('Unable to generate response for overly long repeat in regex "%s"', - pattern.pattern) + pattern) response = '' response = response.encode('utf-8').decode()