Skip to content

Commit c0f4e06

Browse files
authored
Tilemap: Fallback when window is not created (#1413)
1 parent a35c19d commit c0f4e06

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

arcade/tilemap/tilemap.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -206,7 +206,10 @@ def __init__(
206206
)
207207

208208
if not texture_atlas:
209-
texture_atlas = get_window().ctx.default_atlas
209+
try:
210+
texture_atlas = get_window().ctx.default_atlas
211+
except Exception:
212+
pass
210213

211214
self._lazy = lazy
212215

0 commit comments

Comments
 (0)