aboutsummaryrefslogtreecommitdiff
path: root/test_client.py
diff options
context:
space:
mode:
authorJonathan Weth <git@jonathanweth.de>2021-06-30 11:01:04 +0200
committerJonathan Weth <git@jonathanweth.de>2021-06-30 11:01:04 +0200
commit125b78b43f24dcbbe9d75879660a056920c72ea5 (patch)
tree51dac44a3ab55d8e24756024c68cf57ff63ac322 /test_client.py
parenteb1ee8aae329d83166028ef0496724f30ecce032 (diff)
parent78e14ca8043814c5816a10756fed31e075f87b03 (diff)
downloadRWA.Support.SessionService-125b78b43f24dcbbe9d75879660a056920c72ea5.tar.gz
RWA.Support.SessionService-125b78b43f24dcbbe9d75879660a056920c72ea5.tar.bz2
RWA.Support.SessionService-125b78b43f24dcbbe9d75879660a056920c72ea5.zip
Merge branch 'master' into feature/api-handshake
Diffstat (limited to 'test_client.py')
-rwxr-xr-xtest_client.py8
1 files changed, 6 insertions, 2 deletions
diff --git a/test_client.py b/test_client.py
index ee49bae..72538c1 100755
--- a/test_client.py
+++ b/test_client.py
@@ -29,8 +29,12 @@
import click
import dbus
-bus = dbus.SessionBus()
-req = bus.get_object("org.ArcticaProject.RWASupportSessionService", "/RWASupportSessionService")
+try:
+ bus = dbus.SessionBus()
+ req = bus.get_object("org.ArcticaProject.RWASupportSessionService", "/RWASupportSessionService")
+except dbus.exceptions.DBusException:
+ click.echo("The D-Bus service isn't responding! Is it even started? Aborting ...")
+ exit(1)
@click.group()