From db06eca12e2c688949f6bc920100e5e3486201ec Mon Sep 17 00:00:00 2001 From: amcmanu3 Date: Thu, 3 Mar 2022 23:59:17 -0500 Subject: [PATCH] ensure icon key exists to prevent stack --- app/classes/web/status_handler.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/classes/web/status_handler.py b/app/classes/web/status_handler.py index 3b90e1d6..87ba7275 100644 --- a/app/classes/web/status_handler.py +++ b/app/classes/web/status_handler.py @@ -29,7 +29,8 @@ class StatusHandler(BaseHandler): server_data = srv.get('server_data', False) server_id = server_data.get('server_id', False) srv['raw_ping_result'] = self.controller.servers.get_server_stats_by_id(server_id) - + if not srv['raw_ping_result'].has_key('icon'): + srv['raw_ping_result']['icon'] = False template = 'public/status.html' self.render(