From 89c7b0fc54aaeb5c143bd4f89e66a7b10ff4c82a Mon Sep 17 00:00:00 2001 From: Aleksander Morgado Date: Sun, 25 Jan 2015 18:38:33 +0100 Subject: qmi-codegen: require Service set for a correct Client definition --- build-aux/qmi-codegen/Client.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'build-aux') diff --git a/build-aux/qmi-codegen/Client.py b/build-aux/qmi-codegen/Client.py index 071c91b..1e342ae 100644 --- a/build-aux/qmi-codegen/Client.py +++ b/build-aux/qmi-codegen/Client.py @@ -43,9 +43,11 @@ class Client: elif object_dictionary['type'] == 'Service': self.service = object_dictionary['name'] - # We NEED the Client field + # We NEED the Client field and the Service field if self.name is None: raise ValueError('Missing Client field') + if self.service is None: + raise ValueError('Missing Service field') """ -- cgit v1.1