diff options
author | Malte Brandy | 2019-10-29 03:52:28 +0100 |
---|---|---|
committer | Malte Brandy | 2019-10-29 03:52:28 +0100 |
commit | b47d3b9fabcdf990d1c683b095c95f6f769c22e7 (patch) | |
tree | 6762e5e37145da68245af1362b73d2c9d3d3d77a | |
parent | 3a884c7eb3b294c5aaf2191408e1ac2befbceaaf (diff) | |
download | jali-b47d3b9fabcdf990d1c683b095c95f6f769c22e7.tar.gz jali-b47d3b9fabcdf990d1c683b095c95f6f769c22e7.zip |
Make currency selection more robust
-rw-r--r-- | jali/dialog.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/jali/dialog.py b/jali/dialog.py index 7a990e6..d995ccf 100644 --- a/jali/dialog.py +++ b/jali/dialog.py | |||
@@ -15,6 +15,8 @@ import jali.data | |||
15 | def choose_currency(from_bank, from_config): | 15 | def choose_currency(from_bank, from_config): |
16 | if from_bank is None: | 16 | if from_bank is None: |
17 | return from_config | 17 | return from_config |
18 | if from_bank is "": | ||
19 | return from_config | ||
18 | if from_bank in ["€", "EUR"] and from_config in ["€", "EUR"]: | 20 | if from_bank in ["€", "EUR"] and from_config in ["€", "EUR"]: |
19 | return from_config | 21 | return from_config |
20 | else: | 22 | else: |