code: def _on_connect_error(self, sock, err):  # pylint: disable=unused-argument
          
          if isinstance(err, SystemExit):
              self.log.error(f"Shutting down websocket connection")
          else:
              self.log.error(f"Websocket error: {err}")
docs: Error received from websocket