mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
ensure icon key exists to prevent stack
This commit is contained in:
parent
0a08324963
commit
db06eca12e
@ -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(
|
||||
|
Loading…
Reference in New Issue
Block a user