Config:: Skip loading missing tracker files

This commit is contained in:
canewsin 2022-11-01 18:06:32 +05:30
parent 459b0a73ca
commit ad95eede10
1 changed files with 3 additions and 0 deletions

View File

@ -324,6 +324,9 @@ class Config(object):
else: # Relative to zeronet.py
trackers_file_path = self.start_dir + "/" + trackers_file
if not os.path.exists(trackers_file_path):
continue
for line in open(trackers_file_path):
tracker = line.strip()
if "://" in tracker and tracker not in self.trackers: