Skip to content
Snippets Groups Projects
Commit 5a5619f0 authored by Luca Weiss's avatar Luca Weiss
Browse files

Throw error when failing to add method to daemon

This should be a fatal error as it's a misconfiguration of the daemon.
As warning it's likely that it won't be seen by the developer.
parent bb3ce744
No related branches found
No related tags found
No related merge requests found
...@@ -806,8 +806,7 @@ class RazerDevice(DBusService): ...@@ -806,8 +806,7 @@ class RazerDevice(DBusService):
self.logger.debug("Adding %s.%s method to DBus", new_function.interface, new_function.name) self.logger.debug("Adding %s.%s method to DBus", new_function.interface, new_function.name)
self.add_dbus_method(new_function.interface, new_function.name, new_function, new_function.in_sig, new_function.out_sig, new_function.byte_arrays) self.add_dbus_method(new_function.interface, new_function.name, new_function, new_function.in_sig, new_function.out_sig, new_function.byte_arrays)
except KeyError as e: except KeyError as e:
self.logger.warning("Couldn't add method to DBus: %s", e) raise RuntimeError("Couldn't add method to DBus: " + str(e)) from None
pass
def suspend_device(self): def suspend_device(self):
""" """
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment