summaryrefslogtreecommitdiffstats
path: root/core/models/wallets.py
diff options
context:
space:
mode:
Diffstat (limited to 'core/models/wallets.py')
-rw-r--r--core/models/wallets.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/core/models/wallets.py b/core/models/wallets.py
index 1bff911..e0f4b00 100644
--- a/core/models/wallets.py
+++ b/core/models/wallets.py
@@ -52,7 +52,8 @@ def make_valid_date(date):
print(f"! - Fail, tried to decompose date in yyyy-mm-d or yyy-m-dd format but failed: {datestr=} ")
return None
- print(f"! - Failed to understand date, none of our tricks worked {datestr=} ")
+ if datestr: # might have been None
+ print(f"! - Failed to understand date, none of our tricks worked {datestr=} ")
return None
class Wallet(models.Model):