[master 1/1] Don't crash if the disk model is None (#1215251)

dashea installerbot-noreply at redhat.com
Wed May 6 18:28:01 UTC 2015


From: David Shea <dshea at redhat.com>

---
 pyanaconda/ui/gui/spokes/source.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pyanaconda/ui/gui/spokes/source.py b/pyanaconda/ui/gui/spokes/source.py
index c140347..0af79f8 100644
--- a/pyanaconda/ui/gui/spokes/source.py
+++ b/pyanaconda/ui/gui/spokes/source.py
@@ -750,7 +750,7 @@ def refresh(self):
 
         for dev in potentialHdisoSources(self.storage.devicetree):
             # path model size format type uuid of format
-            dev_info = {"model" : self._sanitize_model(dev.disk.model),
+            dev_info = {"model" : self._sanitize_model(dev.disk.model or ""),
                         "path"  : dev.path,
                         "size"  : dev.size,
                         "format": dev.format.name or "",


-- 
To view this commit on github, visit https://github.com/rhinstaller/anaconda/commit/77fc1f509a84a2efaca871bad28cacc9195a7404


More information about the anaconda-patches mailing list