mirror of https://github.com/scrapy/scrapy.git
fixed bug when no project module setting is defined
This commit is contained in:
parent
91eea82eef
commit
467dbef20e
|
|
@ -61,6 +61,8 @@ def usage(prog):
|
|||
return s
|
||||
|
||||
def update_default_settings(module, cmdname):
|
||||
if not module:
|
||||
return
|
||||
try:
|
||||
mod = __import__('%s.%s' % (module, cmdname), {}, {}, [''])
|
||||
except ImportError:
|
||||
|
|
|
|||
Loading…
Reference in New Issue