Commit 9a6365ae authored by Łukasz Nowak's avatar Łukasz Nowak

Support case when no certificate is passed.

parent d34817db
......@@ -189,9 +189,10 @@ class NetworkcacheClient(object):
Returns true if it can find any valid certificate or false if it does not
find any.
"""
for certificate in self.signature_certificate_list:
if self._verifySignatureCertificate(signature_string, certificate):
return True
if self.signature_certificate_list is not None:
for certificate in self.signature_certificate_list:
if self._verifySignatureCertificate(signature_string, certificate):
return True
return False
def _verifySignatureCertificate(self, signature_string, certificate):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment