Fix get_coredumpctl_traces.py

This commit is contained in:
Florian Bruhin 2016-11-07 17:52:50 +01:00
parent d279f4af89
commit 6019e090a1

View File

@ -77,7 +77,11 @@ def get_info(pid):
for line in output.split('\n'):
if not line.strip():
continue
key, value = line.split(':', maxsplit=1)
try:
key, value = line.split(':', maxsplit=1)
except ValueError:
# systemd stack output
continue
data[key.strip()] = value.strip()
return data