Send empty json for no banned/cached players

This commit is contained in:
Andrew 2023-05-23 18:21:04 -04:00
parent 993ba24b6b
commit 178aba63dd

View File

@ -529,8 +529,8 @@ class ServersController(metaclass=Singleton):
content = file.read() content = file.read()
file.close() file.close()
except Exception as ex: except Exception as ex:
print(ex) logger.error(ex)
return None return {}
return json.loads(content) return json.loads(content)
@ -548,8 +548,8 @@ class ServersController(metaclass=Singleton):
content = file.read() content = file.read()
file.close() file.close()
except Exception as ex: except Exception as ex:
print(ex) logger.error(ex)
return None return {}
return json.loads(content) return json.loads(content)