We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8c22aff commit 80521d8Copy full SHA for 80521d8
tspider.py
@@ -57,9 +57,9 @@ def cmdparse():
57
if args.keepon:
58
redis_handle.restore_startup_params(args)
59
logger.info(args)
60
-
61
- for f in os.listdir(TMPDIR_PATH):
62
- os.remove(os.path.join(TMPDIR_PATH, f))
+ if os.path.exists(TMPDIR_PATH):
+ for f in os.listdir(TMPDIR_PATH):
+ 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()
0 commit comments