Config:: Skip loading missing tracker files
This commit is contained in:
parent
57e840b6ad
commit
62970de60b
1 changed files with 3 additions and 0 deletions
|
@ -324,6 +324,9 @@ class Config(object):
|
||||||
else: # Relative to zeronet.py
|
else: # Relative to zeronet.py
|
||||||
trackers_file_path = self.start_dir + "/" + trackers_file
|
trackers_file_path = self.start_dir + "/" + trackers_file
|
||||||
|
|
||||||
|
if not os.path.exists(trackers_file_path):
|
||||||
|
continue
|
||||||
|
|
||||||
for line in open(trackers_file_path):
|
for line in open(trackers_file_path):
|
||||||
tracker = line.strip()
|
tracker = line.strip()
|
||||||
if "://" in tracker and tracker not in self.trackers:
|
if "://" in tracker and tracker not in self.trackers:
|
||||||
|
|
Loading…
Reference in a new issue