Skip to content

Commit

Permalink
make commonclient not seize up on an uncastable port
Browse files Browse the repository at this point in the history
  • Loading branch information
qwint committed Mar 16, 2024
1 parent 72e6383 commit a7a8fb3
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion CommonClient.py
Original file line number Diff line number Diff line change
Expand Up @@ -643,7 +643,10 @@ async def server_loop(ctx: CommonContext, address: typing.Optional[str] = None)
ctx.username = server_url.username
if server_url.password:
ctx.password = server_url.password
port = server_url.port or 38281
try:
port = server_url.port or 38281
except ValueError as e:
logger.info("Given Port could not be converted into an Integer")

def reconnect_hint() -> str:
return ", type /connect to reconnect" if ctx.server_address else ""
Expand Down

0 comments on commit a7a8fb3

Please sign in to comment.