alfred-convert
alfred-convert copied to clipboard
Improve handling of Currency update responses
There are two commits here:
- Generically reject any currency updates unless both are true:
- the currency is in
CURRENCIES
orCRYPTO_CURRENCIES
- the rate is a number.
- the currency is in
- Explicitly handle throttling responses from Cryptocompare.com's API which unfortunately use a HTTP 200 instead of a 429 or similar.
This should help with #74 .