Skip to content

Commit

Permalink
Catch only UnsupportedEncodingException while building Websocket URL
Browse files Browse the repository at this point in the history
  • Loading branch information
JcMinarro committed Apr 22, 2024
1 parent aa35cad commit 39fd5a9
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ internal class SocketFactory(
"$baseWsUrl&authorization=$token&stream-auth-type=jwt"
}
}
} catch (_: Throwable) {
} catch (_: UnsupportedEncodingException) {
throw UnsupportedEncodingException("Unable to encode user details json: $json")
}
}
Expand Down

0 comments on commit 39fd5a9

Please sign in to comment.