forked from bartvdbraak/blender
update for changed exception type
This commit is contained in:
parent
4a48bb3cf5
commit
21067886aa
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user