Add a check and only try and load images that actualy exist
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user