Skip to content

Commit 5765765

Browse files
committed
gotta catch them all
1 parent 037b4e5 commit 5765765

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

TFT_Gizmo_Snowglobe/snowglobe_fancy.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@
4545
bitmap=displayio.Bitmap,
4646
palette=displayio.Palette)
4747
# Or just use solid color
48-
except OSError:
48+
except (OSError, TypeError):
4949
bg_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
5050
bg_palette = displayio.Palette(1)
5151
bg_palette[0] = BACKGROUND

TFT_Gizmo_Snowglobe/snowglobe_simple.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
bitmap=displayio.Bitmap,
3939
palette=displayio.Palette)
4040
# Or just use solid color
41-
except OSError:
41+
except (OSError, TypeError):
4242
bg_bitmap = displayio.Bitmap(WIDTH, HEIGHT, 1)
4343
bg_palette = displayio.Palette(1)
4444
bg_palette[0] = BACKGROUND

0 commit comments

Comments
 (0)