Skip to content

Commit

Permalink
Config:: Skip loading missing tracker files
Browse files Browse the repository at this point in the history
  • Loading branch information
canewsin committed Nov 1, 2022
1 parent 459b0a7 commit ad95eed
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/Config.py
Original file line number Diff line number Diff line change
Expand Up @@ -324,6 +324,9 @@ def loadTrackersFile(self):
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:
Expand Down

0 comments on commit ad95eed

Please sign in to comment.