Skip to content

Commit 5677717

Browse files
committed
Removed duplicated looping call
1 parent 4be5080 commit 5677717

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

tor2web/t2w.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1240,10 +1240,6 @@ def start_worker():
12401240
ult = LoopingCall(updateListsTask)
12411241
ult.start(600)
12421242

1243-
if not config.disable_gettor:
1244-
gtt = LoopingCall(getTorTask, config)
1245-
gtt.start(3600)
1246-
12471243
# ##############################################################################
12481244
# Static Data loading
12491245
# Here we make a file caching to not handle I/O

tor2web/utils/lists.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -210,10 +210,13 @@ def load(self):
210210
"""
211211
self.clear()
212212

213-
#simple touch to create non existent files
213+
# simple touch to create non existent files
214214
try:
215215
open(self.filename, 'a').close()
216+
except:
217+
pass
216218

219+
try:
217220
with open(self.filename, 'r') as fh:
218221
for l in fh.readlines():
219222
self.add(re.split("#", l)[0].rstrip("[ , \n,\t]"))

0 commit comments

Comments
 (0)