diff --git a/src/ert/scheduler/scheduler.py b/src/ert/scheduler/scheduler.py index 9e02a7d3b7c..5b900479e5c 100644 --- a/src/ert/scheduler/scheduler.py +++ b/src/ert/scheduler/scheduler.py @@ -85,6 +85,8 @@ def set_ee_info( self._ee_token = ee_token async def _publisher(self) -> None: + if not self._ee_uri: + return tls: Optional[ssl.SSLContext] = None if self._ee_cert: tls = ssl.SSLContext(ssl.PROTOCOL_TLS_CLIENT)