Add a no cover pragma for certificate error hashing

This commit is contained in:
Florian Bruhin 2017-05-09 06:15:21 +02:00
parent 8052249b1b
commit 9db92de2d5

View File

@ -41,7 +41,7 @@ class CertificateErrorWrapper(usertypes.AbstractCertificateErrorWrapper):
try:
# Qt >= 5.4
return hash(self._error)
except TypeError:
except TypeError: # pragma: no cover
return hash((self._error.certificate().toDer(),
self._error.error()))