Browse Source

api/internal: make GetSystemInfo not crash on not set default DispVM

Marek Marczykowski-Górecki 7 years ago
parent
commit
b08574acf3
1 changed files with 1 additions and 1 deletions
  1. 1 1
      qubes/api/internal.py

+ 1 - 1
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
         }}