diff --git a/livechat/customer/rtm/api/v33.py b/livechat/customer/rtm/api/v33.py index e349ff9..a6929fe 100644 --- a/livechat/customer/rtm/api/v33.py +++ b/livechat/customer/rtm/api/v33.py @@ -15,9 +15,10 @@ def __init__(self, license_id: str, base_url: str): url= f'wss://{base_url}/v3.3/customer/rtm/ws?license_id={license_id}' ) - raise ValueError( - f'Provided `license_id` (`{license_id}`) seems invalid. Websocket connection may not open.' - ) + else: + raise ValueError( + f'Provided `license_id` (`{license_id}`) seems invalid. Websocket connection may not open.' + ) def open_connection(self, origin: dict = None) -> None: ''' Opens WebSocket connection.