mirror of
https://github.com/kellyjonbrazil/jc.git
synced 2025-06-19 00:17:51 +02:00
remove try/except at end
This commit is contained in:
@ -177,7 +177,6 @@ def _process(proc_data: Dict, idx=0, quiet=False) -> Dict:
|
|||||||
|
|
||||||
Dictionary. Structured data to conform to the schema.
|
Dictionary. Structured data to conform to the schema.
|
||||||
"""
|
"""
|
||||||
|
|
||||||
key_map: Dict = {
|
key_map: Dict = {
|
||||||
'%CPU': 'percent_cpu',
|
'%CPU': 'percent_cpu',
|
||||||
'%MEM': 'percent_mem',
|
'%MEM': 'percent_mem',
|
||||||
@ -461,11 +460,7 @@ def parse(
|
|||||||
except Exception as e:
|
except Exception as e:
|
||||||
yield raise_or_yield(ignore_exceptions, e, line)
|
yield raise_or_yield(ignore_exceptions, e, line)
|
||||||
|
|
||||||
try:
|
if output_line:
|
||||||
if output_line:
|
if process_list:
|
||||||
if process_list:
|
output_line['processes'] = parse_table(process_list)
|
||||||
output_line['processes'] = parse_table(process_list)
|
yield output_line if raw else _process(output_line, idx=idx, quiet=quiet)
|
||||||
yield output_line if raw else _process(output_line, idx=idx, quiet=quiet)
|
|
||||||
|
|
||||||
except Exception as e:
|
|
||||||
yield raise_or_yield(ignore_exceptions, e, line)
|
|
||||||
|
Reference in New Issue
Block a user