mirror of
https://github.com/powerline/powerline.git
synced 2025-07-29 00:34:49 +02:00
Merge commit 'HEAD@{1}' into develop
This commit is contained in:
commit
35a83cacc7
@ -27,7 +27,7 @@ def _get_battery(pl):
|
||||
try:
|
||||
up = bus.get_object(interface, '/org/freedesktop/UPower')
|
||||
except dbus.exceptions.DBusException as e:
|
||||
if getattr(e, '_dbus_error_name', '').endswidth('ServiceUnknown'):
|
||||
if getattr(e, '_dbus_error_name', '').endswith('ServiceUnknown'):
|
||||
pl.debug('Not using DBUS+UPower as UPower is not available via dbus')
|
||||
else:
|
||||
pl.exception('Failed to get UPower service with dbus: {0}', str(e))
|
||||
|
Loading…
x
Reference in New Issue
Block a user