fix int(port)

This commit is contained in:
Andrey
2021-02-26 16:18:05 +03:00
parent 8742bb975f
commit f88109c3a6
6 changed files with 20 additions and 9 deletions

View File

@@ -10,4 +10,11 @@ def make_ints(d: dict):
if 'm' not in d:
d['m'] = 0
if 'click' not in d:
d['click'] = 0
d['click'] = 0
def int_ignore(x):
try:
return int(x)
except (TypeError, ValueError):
return x