Add a check and only try and load images that actualy exist

This commit is contained in:
cncfanatics
2010-08-16 15:37:49 +02:00
parent 5ceec2ecff
commit 7e44e9e885

View File

@@ -36,4 +36,5 @@ def getBitmap(name,location):
location = os.path.join(config.path, location)
path = os.path.join(location, name + ".png")
return wx.Image(path).ConvertToBitmap()
if os.path.exists(path):
return wx.Image(path).ConvertToBitmap()