From 467dbef20e912c6efbcf861d8a53178d017d0613 Mon Sep 17 00:00:00 2001 From: Pablo Hoffman Date: Sat, 8 Aug 2009 15:12:40 -0300 Subject: [PATCH] fixed bug when no project module setting is defined --- scrapy/command/cmdline.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/scrapy/command/cmdline.py b/scrapy/command/cmdline.py index d900a537c..c0e4a6ad2 100644 --- a/scrapy/command/cmdline.py +++ b/scrapy/command/cmdline.py @@ -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: