From 2f03f39e24053377dce108e45fde13ccd1e0ae22 Mon Sep 17 00:00:00 2001 From: Tim Keller Date: Tue, 24 Jun 2025 18:56:53 -0500 Subject: window can now handle no selected albums --- lazycachelist.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'lazycachelist.py') diff --git a/lazycachelist.py b/lazycachelist.py index 5243def..99212ab 100644 --- a/lazycachelist.py +++ b/lazycachelist.py @@ -150,6 +150,8 @@ class LazyCachingTextureList(): return self.asset_count def __getitem__(self, index): + if not self.asset_count: + raise IndexError("Index out of bounds") i = index % self.asset_count if abs(index) > i: raise IndexError("Index out of bounds") -- cgit v1.2.3