Skip to content

Commit

Permalink
API-10525: add missing else statement
Browse files Browse the repository at this point in the history
  • Loading branch information
kacperf531 committed May 12, 2022
1 parent 226b5ea commit 2dd2980
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions livechat/customer/rtm/api/v33.py
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 2dd2980

Please sign in to comment.