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:
@ -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
|
||||
|
||||
|
Reference in New Issue
Block a user