Ajusted the ownerlist from env varable if bank to be less destructive

This commit is contained in:
Raatty
2018-05-24 00:23:36 +12:00
committed by GitHub
parent 124df7eab1
commit dc3a34651f
+3 -3
View File
@@ -15,9 +15,9 @@ class LoadConfig:
self.config = json.load(fp)
# Initialize config
if self.config["ownerlist"] != []:
self.ownerlist = self.config["ownerlist"]
else:
self.ownerlist = self.config["ownerlist"]
if self.ownerlist == []:
self.ownerlist = [int(i) for i in os.getenv('ownerlist').split(',')]
self.defaultprefix = self.config["prefix"]
self.version = self.config["version"]