mirror of
https://github.com/HelloZeroNet/ZeroNet.git
synced 2023-12-14 04:33:03 +01:00
Rev1884, Fix mute plugin startup error
This commit is contained in:
parent
91cba2514a
commit
6b900ab0b1
2 changed files with 6 additions and 3 deletions
|
@ -10,9 +10,12 @@ from util import helper
|
|||
|
||||
|
||||
if os.path.isfile("%s/mutes.json" % config.data_dir):
|
||||
mutes = json.load(open("%s/mutes.json" % config.data_dir))["mutes"]
|
||||
try:
|
||||
mutes = json.load(open("%s/mutes.json" % config.data_dir))["mutes"]
|
||||
except Exception, err:
|
||||
mutes = {}
|
||||
else:
|
||||
open("%s/mutes.json" % config.data_dir, "w").write("{'mutes': {}}")
|
||||
open("%s/mutes.json" % config.data_dir, "w").write('{"mutes": {}}')
|
||||
mutes = {}
|
||||
|
||||
if "_" not in locals():
|
||||
|
|
|
@ -10,7 +10,7 @@ class Config(object):
|
|||
|
||||
def __init__(self, argv):
|
||||
self.version = "0.5.2"
|
||||
self.rev = 1882
|
||||
self.rev = 1884
|
||||
self.argv = argv
|
||||
self.action = None
|
||||
self.config_file = "zeronet.conf"
|
||||
|
|
Loading…
Reference in a new issue