From 2eb239752788efb50122454579e89ea243ecc774 Mon Sep 17 00:00:00 2001 From: Cole Robinson Date: Wed, 24 Oct 2012 15:20:17 -0400 Subject: [PATCH] create: Fix backtrace when showing all OS options --- src/virtManager/create.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/virtManager/create.py b/src/virtManager/create.py index ee4665ea2..ed91ba3f1 100644 --- a/src/virtManager/create.py +++ b/src/virtManager/create.py @@ -801,7 +801,7 @@ class vmmCreate(vmmGObjectUI): def populate_os_variant_model(self, _type): model = self.widget("install-os-version").get_model() model.clear() - if _type == None: + if not _type: self._add_os_row(model, None, _("Generic"), True) return