From f919e23360db3ffbe7a580a96b366f8e985e3b8d Mon Sep 17 00:00:00 2001 From: Ryan Holmes Date: Sat, 2 Mar 2019 11:43:21 -0500 Subject: [PATCH] There's some times when self.httpd doesn't exist for some reason. Too lazy to find out the cause --- service/esi.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/service/esi.py b/service/esi.py index e7689e0cd..8162c6844 100644 --- a/service/esi.py +++ b/service/esi.py @@ -118,8 +118,9 @@ class Esi(EsiAccess): def stopServer(self): pyfalog.debug("Stopping Server") - self.httpd.stop() - self.httpd = None + if self.httpd: + self.httpd.stop() + self.httpd = None def startServer(self, port): # todo: break this out into two functions: starting the server, and getting the URI pyfalog.debug("Starting server")