mirror of https://github.com/scrapy/scrapy.git
Fix scrapy.cfg validation
Signed-off-by: Felipe Ruhland <felipe.ruhland@gmail.com>
This commit is contained in:
parent
9ad54b3815
commit
de64a1f68a
|
|
@ -79,10 +79,11 @@ class Command(ScrapyCommand):
|
|||
|
||||
if len(args) == 2:
|
||||
project_dir = args[1]
|
||||
if exists(join(project_dir, 'scrapy.cfg')):
|
||||
self.exitcode = 1
|
||||
print('Error: scrapy.cfg already exists in %s' % abspath(project_dir))
|
||||
return
|
||||
|
||||
if exists(join(project_dir, 'scrapy.cfg')):
|
||||
self.exitcode = 1
|
||||
print('Error: scrapy.cfg already exists in %s' % abspath(project_dir))
|
||||
return
|
||||
|
||||
if not self._is_valid_name(project_name):
|
||||
self.exitcode = 1
|
||||
|
|
|
|||
Loading…
Reference in New Issue