summaryrefslogtreecommitdiffstats
path: root/gui.py
diff options
context:
space:
mode:
authorJeremy Katz <katzj@redhat.com>2006-08-30 16:29:33 +0000
committerJeremy Katz <katzj@redhat.com>2006-08-30 16:29:33 +0000
commit781f65e188bcfecc44159b016a023242bf74bbe8 (patch)
treeb373673d518dc4d6f8d0f91ef1589817fc7d4b65 /gui.py
parentd6c4c3f9d93683fe2ae1a30cc59880e3a215f0d6 (diff)
downloadanaconda-781f65e188bcfecc44159b016a023242bf74bbe8.tar.gz
anaconda-781f65e188bcfecc44159b016a023242bf74bbe8.tar.xz
anaconda-781f65e188bcfecc44159b016a023242bf74bbe8.zip
2006-08-30 Jeremy Katz <katzj@redhat.com>
* gui.py (readImageFromFile): Fix the case where an image doesn't exist (#204648)
Diffstat (limited to 'gui.py')
-rwxr-xr-xgui.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/gui.py b/gui.py
index ab2025021..74beb1e3a 100755
--- a/gui.py
+++ b/gui.py
@@ -439,7 +439,7 @@ def readImageFromFile(file, height = None, width = None, dither = None,
pixbuf = getPixbuf(file)
if pixbuf is None:
log.warning("can't find pixmap %s" %(file,))
- pixbuf = None
+ return None
if (height is not None and width is not None
and height != pixbuf.get_height()