- Catch missing image sooner
This commit is contained in:
parent
48a99eb33b
commit
746a621dad
1 changed files with 5 additions and 4 deletions
|
|
@ -113,10 +113,11 @@ class SurfaceGetter():
|
|||
log.error("Unknown image type: %s", mixpath)
|
||||
except FileNotFoundError:
|
||||
log.error("File not found: %s", mixpath)
|
||||
surface = from_pil(image)
|
||||
if surface:
|
||||
self.func(self.identifier, surface)
|
||||
return
|
||||
if image:
|
||||
surface = from_pil(image)
|
||||
if surface:
|
||||
self.func(self.identifier, surface)
|
||||
return
|
||||
|
||||
|
||||
def from_pil(image, alpha=1.0):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue