mirror of
https://github.com/desktop/desktop
synced 2024-08-24 18:57:33 +00:00
Surround api.getAliveWebSocketURL
in try-catch
This commit is contained in:
parent
0b9836b113
commit
5f4f299791
|
@ -144,7 +144,14 @@ export class AliveStore {
|
|||
}
|
||||
|
||||
const api = API.fromAccount(account)
|
||||
const webSocketUrl = await api.getAliveWebSocketURL()
|
||||
let webSocketUrl = null
|
||||
|
||||
try {
|
||||
webSocketUrl = await api.getAliveWebSocketURL()
|
||||
} catch (e) {
|
||||
log.error(`Could not get Alive web socket URL for '${account.login}'`, e)
|
||||
return null
|
||||
}
|
||||
|
||||
if (webSocketUrl === null) {
|
||||
return null
|
||||
|
|
Loading…
Reference in a new issue