Skip to content

Commit

Permalink
fix: update proxy provider api may throw
Browse files Browse the repository at this point in the history
  • Loading branch information
kunish committed Sep 2, 2023
1 parent 350fd56 commit ad46745
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/signals/proxies.ts
Original file line number Diff line number Diff line change
Expand Up @@ -105,7 +105,9 @@ export function useProxies() {
}

const updateProviderByProviderName = async (proxyProviderName: string) => {
await request.put(`providers/proxies/${proxyProviderName}`)
try {
await request.put(`providers/proxies/${proxyProviderName}`)
} catch {}
await updateProxy()
}

Expand Down

0 comments on commit ad46745

Please sign in to comment.