mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-17 00:07:37 +02:00
add TypeError to except block. add /usr/bin/time tests
This commit is contained in:
@ -179,7 +179,7 @@ def process(proc_data):
|
||||
if key in proc_data:
|
||||
try:
|
||||
proc_data[key] = int(proc_data[key])
|
||||
except (ValueError):
|
||||
except (ValueError, TypeError):
|
||||
proc_data[key] = None
|
||||
|
||||
float_list = ['real_time', 'user_time', 'system_time']
|
||||
|
Reference in New Issue
Block a user