Add a no cover pragma for certificate error hashing
This commit is contained in:
parent
8052249b1b
commit
9db92de2d5
@ -41,7 +41,7 @@ class CertificateErrorWrapper(usertypes.AbstractCertificateErrorWrapper):
|
|||||||
try:
|
try:
|
||||||
# Qt >= 5.4
|
# Qt >= 5.4
|
||||||
return hash(self._error)
|
return hash(self._error)
|
||||||
except TypeError:
|
except TypeError: # pragma: no cover
|
||||||
return hash((self._error.certificate().toDer(),
|
return hash((self._error.certificate().toDer(),
|
||||||
self._error.error()))
|
self._error.error()))
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user