Traceback (most recent call last):


 "/usr/local/lib/python3.6/dist-packages/tornado/websocket.py", line 954, in _accept_connection

open_result = handler.open(*handler.open_args, **handler.open_kwargs)


 "/code/dpopgateway/dpopgateway/dpop_views/dpop_server_main.py", line 36, in open

print(self.request.get_ssl_certificate())


 "/usr/local/lib/python3.6/dist-packages/tornado/httputil.py", line 445, in get_ssl_certificate

return self.connection.stream.socket.getpeercert(
# type: ignore
AttributeError: 'NoneType' object has no attribute 'socket'

```
An exception occurred in this state: Traceback (most recent call last):


 "c:\salt\bin\lib\site-packages\salt\state.py", line 1878, in call

**cdata['kwargs'])


 "c:\salt\bin\lib\site-packages\salt\loader.py", line 1823, in wrapper

return f(*args, **kwargs)


 "c:\salt\bin\lib\site-packages\salt\states\pip_state.py", line 685, in installed

upgrade, user, cwd, bin_env)


 "c:\salt\bin\lib\site-packages\salt\states\pip_state.py", line 193, in _check_if_installed

user=user, cwd=cwd)


 "c:\salt\bin\lib\site-packages\salt\modules\pip.py", line 1074, in list_

for line in freeze(bin_env=bin_env, user=user, cwd=cwd):


 "c:\salt\bin\lib\site-packages\salt\modules\pip.py", line 1014, in freeze

pip_bin = _get_pip_bin(bin_env)


 "c:\salt\bin\lib\site-packages\salt\modules\pip.py", line 134, in _get_pip_bin

which_result.encode('string-escape')

AttributeError: 'NoneType' object has no attribute 'encode'
```
