mirror of
https://github.com/frappe/books.git
synced 2024-12-22 19:09: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) {
|
||||
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…
Reference in New Issue
Block a user