update for changed exception type

This commit is contained in:
2011-03-02 04:16:57 +00:00
parent 4a48bb3cf5
commit 21067886aa

View File

@@ -23,5 +23,5 @@ def image_load(filepath, dirpath, place_holder=False, recursive=False, convert_c
import bpy
try:
return bpy.data.images.load(filepath)
except SystemError:
except RuntimeError:
return bpy.data.images.new("Untitled", 128, 128)