File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -116,6 +116,7 @@ crashlytics.properties
116116crashlytics-build.properties
117117fabric.properties
118118* .txt
119+ ! requirements.txt
119120* .rdb
120121.tmp
121122.DS_Store
Original file line number Diff line number Diff line change @@ -57,13 +57,13 @@ def cmdparse():
5757 if args .keepon :
5858 redis_handle .restore_startup_params (args )
5959 logger .info (args )
60-
61- for f in os .listdir (TMPDIR_PATH ):
62- os .remove (os .path .join (TMPDIR_PATH , f ))
63- tspider_context = {}
64- tspider_context [ 'live_spider_counts' ] = Value ('i' , 0 )
65- tspider_context [ 'task_done' ] = Event ()
66- tspider_context [ 'lock' ] = Lock ()
60+ if os . path . exists ( TMPDIR_PATH ):
61+ for f in os .listdir (TMPDIR_PATH ):
62+ os .remove (os .path .join (TMPDIR_PATH , f ))
63+ tspider_context = {
64+ 'live_spider_counts' : Value ('i' , 0 ),
65+ 'task_done' : Event (),
66+ 'lock' : Lock ()}
6767 kwargs = {'tld' : args .tld , 'cookie_file' : args .cookie_file ,
6868 'redis_db' : args .redis_db , 'mongo_db' : args .mongo_db }
6969 for _ in range (args .consumer ):
You can’t perform that action at this time.
0 commit comments