mirror of
https://github.com/andvikt/mega_hacs.git
synced 2025-12-12 01:24:29 +05:00
fix int(port)
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user