2
0
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:
18alantom 2022-08-23 16:47:05 +05:30
parent df3ad7b00d
commit abcc96752e

View File

@ -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 {