diff options
author | Jonathan Weth <git@jonathanweth.de> | 2021-06-30 11:01:04 +0200 |
---|---|---|
committer | Jonathan Weth <git@jonathanweth.de> | 2021-06-30 11:01:04 +0200 |
commit | 125b78b43f24dcbbe9d75879660a056920c72ea5 (patch) | |
tree | 51dac44a3ab55d8e24756024c68cf57ff63ac322 /test_client.py | |
parent | eb1ee8aae329d83166028ef0496724f30ecce032 (diff) | |
parent | 78e14ca8043814c5816a10756fed31e075f87b03 (diff) | |
download | RWA.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-x | test_client.py | 8 |
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() |