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