mirror of
https://gitlab.com/crafty-controller/crafty-4.git
synced 2024-08-30 18:23:09 +00:00
Send empty json for no banned/cached players
This commit is contained in:
parent
993ba24b6b
commit
178aba63dd
@ -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)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user