Dec-13-2024, 02:00 PM
Tthere is error:
ERROR:root:Missing 'name' of 'funds' key in lender: {'id': 1, 'name': 'Lender A', 'available_funds': 3000, 'min_interest_rate_%': 5, 'max_risk': 2}There is code which causes it:
if 'name' not in lender or 'funds' not in lender: logging.error(f"Missing 'name' of 'funds' key in lender: {lender}")There is no key 'funds' in lender:
>>> lender = {'available_funds': 7000} >>> 'funds' in lender False >>> for key in lender: ... if 'funds' in key: ... print(key) ... available_funds
I'm not 'in'-sane. Indeed, I am so far 'out' of sane that you appear a tiny blip on the distant coast of sanity. Bucky Katt, Get Fuzzy
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.
Da Bishop: There's a dead bishop on the landing. I don't know who keeps bringing them in here. ....but society is to blame.