aboutsummaryrefslogtreecommitdiff
path: root/whatmaps
diff options
context:
space:
mode:
Diffstat (limited to 'whatmaps')
-rw-r--r--whatmaps/systemd.py3
1 files changed, 3 insertions, 0 deletions
diff --git a/whatmaps/systemd.py b/whatmaps/systemd.py
index 9bc03b1..d4f45fe 100644
--- a/whatmaps/systemd.py
+++ b/whatmaps/systemd.py
@@ -43,5 +43,8 @@ class Systemd(object):
return parts[0]
elif parts[1].endswith('.service'):
return parts[1]
+ elif parts[1].startswith('session-') and parts[1].endswith('.scope'):
+ msg = output.decode('utf-8').split('\n')[0][2:]
+ raise ValueError("Can't parse service name from %s" % msg)
else:
raise ValueError("Can't parse service name from: (%s %s)" % (parts[0], parts[1]))