mirror of
https://github.com/frappe/books.git
synced 2024-12-23 03:19:01 +00:00
fix: don't report cannot fetch exchange rate
This commit is contained in:
parent
df3ad7b00d
commit
abcc96752e
@ -228,8 +228,9 @@ export async function getExchangeRate({
|
|||||||
}
|
}
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error(error);
|
console.error(error);
|
||||||
throw new Error(
|
throw new NotFoundError(
|
||||||
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`
|
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`,
|
||||||
|
false
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
|
Loading…
Reference in New Issue
Block a user