mirror of
https://github.com/frappe/books.git
synced 2025-01-22 22:58:28 +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) {
|
||||
console.error(error);
|
||||
throw new Error(
|
||||
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`
|
||||
throw new NotFoundError(
|
||||
`Could not fetch exchange rate for ${fromCurrency} -> ${toCurrency}`,
|
||||
false
|
||||
);
|
||||
}
|
||||
} else {
|
||||
|
Loading…
x
Reference in New Issue
Block a user