From 31db4d062cb8a52300c084094b30337b296556c3 Mon Sep 17 00:00:00 2001 From: Forrest Fuqua <kingjrwr@gmail.com> Date: Thu, 3 Oct 2019 19:48:44 -0400 Subject: [PATCH] Update Inky Render to not crash the script Updated Inky so in case the render cannot display anything to the hardware everything else works (like the webbrowser) Other renders should do the same --- .../rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py index ed6b188..76e9a24 100644 --- a/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py +++ b/sdcard/rootfs/root/pwnagotchi/scripts/pwnagotchi/ui/display.py @@ -190,7 +190,10 @@ class Display(View): ]) self._display.set_image(img_buffer) - self._display.show() + try: + self._display.show() + except: + print("") def _papirus_render(self): self._display.display(self._canvas)