You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
If the user provides and invalid currency code to get_exchange_rate(), an error is returned. A list of valid codes are available from a link in the documentation, but this is not very transparent for the user. Since we already provide a list of valid codes internally, we should create a function to make this information available to the user. Such a function could be called list_valid_currencies(). When an error is returned from get_exchange_rate() because of an invalid currency code, we could tip the user to list valid codes with list_valid_currencies().
The text was updated successfully, but these errors were encountered:
If the user provides and invalid currency code to
get_exchange_rate()
, an error is returned. A list of valid codes are available from a link in the documentation, but this is not very transparent for the user. Since we already provide a list of valid codes internally, we should create a function to make this information available to the user. Such a function could be calledlist_valid_currencies()
. When an error is returned fromget_exchange_rate()
because of an invalid currency code, we could tip the user to list valid codes withlist_valid_currencies()
.The text was updated successfully, but these errors were encountered: