Reformat code
This commit is contained in:
3
main.py
3
main.py
@@ -5,7 +5,6 @@ from os.path import exists
|
||||
from string import digits
|
||||
|
||||
from redis import StrictRedis
|
||||
from os import getenv
|
||||
|
||||
# List of errors ZNC can give us
|
||||
ZNCErrors = ["Error:", "Unable to load", "does not exist", "doesn't exist"]
|
||||
@@ -72,7 +71,7 @@ def liveNets():
|
||||
|
||||
def saveConf(var):
|
||||
if var in ("help", "aliasdata"):
|
||||
return # no need to save this
|
||||
return # no need to save this
|
||||
if filemap[var][2] == "json":
|
||||
with open(configPath + filemap[var][0], "w") as f:
|
||||
json.dump(globals()[var], f, indent=4)
|
||||
|
||||
Reference in New Issue
Block a user