From b08574acf30bdff1a4568114d82703c3527e1167 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Marek=20Marczykowski-G=C3=B3recki?= Date: Tue, 30 May 2017 21:32:01 +0200 Subject: [PATCH] api/internal: make GetSystemInfo not crash on not set default DispVM --- qubes/api/internal.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qubes/api/internal.py b/qubes/api/internal.py index b9bad5dd..7fdb93ba 100644 --- a/qubes/api/internal.py +++ b/qubes/api/internal.py @@ -51,7 +51,7 @@ class QubesInternalAPI(qubes.api.AbstractQubesAPI): 'type': domain.__class__.__name__, 'dispvm_allowed': getattr(domain, 'dispvm_allowed', False), 'default_dispvm': (str(domain.default_dispvm) if - domain.default_dispvm else None), + getattr(domain, 'default_dispvm', None) else None), 'icon': str(domain.label.icon), } for domain in self.app.domains }}