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):