From 5aa50197ea040f4f05ede489666a3b22bdf1e93e Mon Sep 17 00:00:00 2001 From: TJ Porter Date: Wed, 17 Jan 2024 01:01:22 -0600 Subject: [PATCH] Fixed #217 [FIX] Fixed error being raised with qop not present --- pyVoIP/SIP/client.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pyVoIP/SIP/client.py b/pyVoIP/SIP/client.py index 78b10c8..04943a2 100644 --- a/pyVoIP/SIP/client.py +++ b/pyVoIP/SIP/client.py @@ -429,7 +429,7 @@ def gen_digest( else: hash_func = self._hash_md5 # Get new method values - qop = request.authentication.get("qop", None).pop(0) + qop = request.authentication.get("qop", [None]).pop(0) opaque = request.authentication.get("opaque", None) userhash = request.authentication.get("userhash", False)