From ebed9f52023af81089b4d1c70e9d85be9c5d112b Mon Sep 17 00:00:00 2001 From: Bob Mottram Date: Mon, 14 Oct 2019 22:29:46 +0100 Subject: [PATCH] Missing returns --- daemon.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daemon.py b/daemon.py index d2c9edb5f..b488b223c 100644 --- a/daemon.py +++ b/daemon.py @@ -792,7 +792,8 @@ class PubServer(BaseHTTPRequestHandler): mediaBinary = avFile.read() self._set_headers('image/png',len(mediaBinary),cookie) self.wfile.write(mediaBinary) - self.wfile.flush() + self.wfile.flush() + return self._404() return # login screen background image @@ -817,7 +818,8 @@ class PubServer(BaseHTTPRequestHandler): mediaBinary = avFile.read() self._set_headers('image/png',len(mediaBinary),cookie) self.wfile.write(mediaBinary) - self.wfile.flush() + self.wfile.flush() + return self._404() return # emoji images