[gnome-code-assistance] [tests] Check for existance of interface before using it
- From: Jesse van den Kieboom <jessevdk src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gnome-code-assistance] [tests] Check for existance of interface before using it
- Date: Sun, 11 Jan 2015 13:56:56 +0000 (UTC)
commit 00895d53ba71617fbc8c294d9cc7065841ec99eb
Author: Jesse van den Kieboom <jessevdk gmail com>
Date: Sun Jan 11 14:56:19 2015 +0100
[tests] Check for existance of interface before using it
tests/service | 3 +++
1 files changed, 3 insertions(+), 0 deletions(-)
---
diff --git a/tests/service b/tests/service
index ad74dca..c5d7a4a 100755
--- a/tests/service
+++ b/tests/service
@@ -69,6 +69,9 @@ class Interface:
ret = {}
obj = lxml.objectify.fromstring(xml)
+ if not hasattr(obj, 'interface'):
+ return ret
+
for i in obj.interface:
ii = cls()
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]