This commit is contained in:
Andrey
2021-01-26 08:34:27 +03:00
parent c0b1247b9e
commit a7d7738a5c
4 changed files with 39 additions and 10 deletions

View File

@@ -2,7 +2,7 @@ def make_ints(d: dict):
for x in d:
try:
d[x] = float(d[x])
except ValueError:
except (ValueError, TypeError):
pass
if 'm' not in d:
d['m'] = 0