Skip to content

Commit 552585f

Browse files
committed
Catch error when a cardset image fails to load
1 parent 880fb11 commit 552585f

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

pysollib/images.py

+2
Original file line numberDiff line numberDiff line change
@@ -181,6 +181,8 @@ def load(self, app, progress=None):
181181
# load face cards
182182
for n in self.cs.getFaceCardNames():
183183
self._card.append(self.__loadCard(n + self.cs.ext))
184+
if self._card[-1] is None:
185+
return 0
184186
self._card[-1].filename = n
185187
if progress:
186188
progress.update(step=pstep)

0 commit comments

Comments
 (0)