From dd78b2b54d1699d66ddbde8858b2ea2929818cfe Mon Sep 17 00:00:00 2001 From: ashay88 Date: Fri, 18 May 2018 09:50:59 +0530 Subject: [PATCH] Update client.py to sort recent connection issues in current master(v2.8) relying on hangups API This sorts out issue number #925 "5/16/18 key error ds:7" The old hangups API broke recently. This is a fix to get it to work. The response returned had some extra parameters for which the regex was edited to get the relevant fields. --- hangups/client.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/hangups/client.py b/hangups/client.py index e72050f9..811a18d8 100644 --- a/hangups/client.py +++ b/hangups/client.py @@ -27,7 +27,8 @@ 'pvt': None, # Populated later } CHAT_INIT_REGEX = re.compile( - r"(?:)", re.DOTALL + #r"(?:)", re.DOTALL + r"(?:)", re.DOTALL ) # Timeout to send for setactiveclient requests: ACTIVE_TIMEOUT_SECS = 120