From cae13443bce201ccae54fb0aa99b44a008eb9d4d Mon Sep 17 00:00:00 2001 From: jaseg Date: Mon, 4 Jan 2016 21:14:55 +0100 Subject: Re-add spam filtering, improve length marquee limiting --- host/bdf.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'host/bdf.py') diff --git a/host/bdf.py b/host/bdf.py index a8fc8f3..fb4c928 100644 --- a/host/bdf.py +++ b/host/bdf.py @@ -40,7 +40,7 @@ class Font: textw, texth = c_size_t(0), c_size_t(0) res = lib.framebuffer_get_text_bounds(textbytes, self.font, byref(textw), byref(texth)) if res: - raise ValueError('Invalid text') + raise RuntimeError('Invalid text') return textw.value, texth.value def render_text(self, text, offset): @@ -49,7 +49,7 @@ class Font: res = lib.framebuffer_render_text(textbytes, self.font, self.cbuf, config.display_width, config.display_height, offset) if res: - raise ValueError('Invalid text') + raise RuntimeError('Invalid text') return self.cbuf unifont = Font() -- cgit