1
0
mirror of https://github.com/kellyjonbrazil/jc.git synced 2025-07-15 01:24:29 +02:00

try/except int conversions

This commit is contained in:
Kelly Brazil
2022-09-07 08:40:37 -07:00
parent 966fe97759
commit cc6287c124

View File

@ -142,7 +142,10 @@ def _process(proc_data: List[Dict]) -> List[Dict]:
for entry in proc_data:
for key in entry:
if key in int_list or key.endswith('size'):
entry[key] = jc.utils.convert_to_int(entry[key])
try:
entry[key] = int(entry[key])
except Exception:
pass
return proc_data