Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix string splitting in format_satoshis
This hopefully addresses #283, but I'm not sure because I don't know how to reproduce the issue. The `try: except...` clause previously used was nonsense that did not catch any error. Replace it with a simple check to find out if the amount string contains a decimal point. If not, assume it only contains an integer. I'm not sure what could cause the string not to have a decimal point, but then I 'm not entirely in control of what `locale.format_string` produces. Maybe their is an exotic/buggy locale setting that produces values without a dp.
- Loading branch information