Rev1275, Fix dictionary changed size during iteration error
This commit is contained in:
parent
4598b77687
commit
93e598cc59
2 changed files with 2 additions and 2 deletions
|
@ -8,7 +8,7 @@ class Config(object):
|
||||||
|
|
||||||
def __init__(self, argv):
|
def __init__(self, argv):
|
||||||
self.version = "0.3.7"
|
self.version = "0.3.7"
|
||||||
self.rev = 1274
|
self.rev = 1275
|
||||||
self.argv = argv
|
self.argv = argv
|
||||||
self.action = None
|
self.action = None
|
||||||
self.config_file = "zeronet.conf"
|
self.config_file = "zeronet.conf"
|
||||||
|
|
|
@ -283,7 +283,7 @@ class SiteStorage:
|
||||||
if not self.site.content_manager.contents.get("content.json"): # No content.json, download it first
|
if not self.site.content_manager.contents.get("content.json"): # No content.json, download it first
|
||||||
self.site.needFile("content.json", update=True) # Force update to fix corrupt file
|
self.site.needFile("content.json", update=True) # Force update to fix corrupt file
|
||||||
self.site.content_manager.loadContent() # Reload content.json
|
self.site.content_manager.loadContent() # Reload content.json
|
||||||
for content_inner_path, content in self.site.content_manager.contents.iteritems():
|
for content_inner_path, content in self.site.content_manager.contents.items():
|
||||||
i += 1
|
i += 1
|
||||||
if i % 50 == 0:
|
if i % 50 == 0:
|
||||||
time.sleep(0.0001) # Context switch to avoid gevent hangs
|
time.sleep(0.0001) # Context switch to avoid gevent hangs
|
||||||
|
|
Loading…
Reference in a new issue