mirror of
https://github.com/Foundry376/Mailspring.git
synced 2025-01-01 13:14:16 +08:00
Clean up errors from clearbit proxy
This commit is contained in:
parent
cdf059ab4f
commit
0dbedd485a
1 changed files with 10 additions and 5 deletions
|
@ -8,11 +8,16 @@ export default class ClearbitDataSource {
|
|||
if (tryCount >= MAX_RETRY) {
|
||||
return null;
|
||||
}
|
||||
const body = await makeRequest({
|
||||
server: 'identity',
|
||||
method: 'GET',
|
||||
path: `/api/info-for-email/${email}`,
|
||||
});
|
||||
let body = null;
|
||||
try {
|
||||
body = await makeRequest({
|
||||
server: 'identity',
|
||||
method: 'GET',
|
||||
path: `/api/info-for-email/${email}`,
|
||||
});
|
||||
} catch (err) {
|
||||
// we don't care about errors returned by this clearbit proxy
|
||||
}
|
||||
return await this.parseResponse(body, email, tryCount);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue