Skip to content

Commit

Permalink
Stash
Browse files Browse the repository at this point in the history
  • Loading branch information
jinglemansweep committed Feb 1, 2024
1 parent 8e003c2 commit 0966ea8
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion wideboy/sprites/tile_grid/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -79,8 +79,13 @@ def render(self) -> Surface:
)
image.blit(icon_surface, (0, 0))
cx += icon_surface.get_width()
try:
label = self.label
except TypeError as e:
label = "?"
logger.warn(f"Label for {self.entity_id} is not a string", exc_info=e)
label_surface = render_text(
text=self.label,
text=label,
antialias=self.label_antialias,
color_foreground=self.label_color_foreground,
color_outline=self.label_color_outline,
Expand Down

0 comments on commit 0966ea8

Please sign in to comment.