mirror of https://github.com/scrapy/scrapy.git
removed old comment
--HG-- extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40299
This commit is contained in:
parent
acebe63d0a
commit
8dc46c16ce
|
|
@ -8,12 +8,6 @@ from scrapy.core.exceptions import UsageError
|
|||
|
||||
def _valid_start_urls(obj):
|
||||
"""Check the start urls specified are valid"""
|
||||
# TODO: we should add proper validation here
|
||||
|
||||
## This commented if is a test i was doing, it also takes in account the spider's base class (if any)
|
||||
## it works, but the attribute is checked somewhere else (zope?) and causes to fail
|
||||
##if not (obj.start_urls or any([hasattr(base, 'start_urls') for base in list(obj.__class__.__bases__)])):
|
||||
|
||||
if not obj.start_urls:
|
||||
raise UsageError("A start url is required")
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue