removed code that generates confusing and mistaken import error

message when the import error raises inside scrapy_settings.

--HG--
extra : convert_revision : svn%3Ab85faa78-f9eb-468e-a121-7cced6da292c%40119
This commit is contained in:
olveyra 2008-07-25 19:40:43 +00:00
parent 0bb68f34f6
commit c97c495d16
1 changed files with 1 additions and 7 deletions

View File

@ -20,13 +20,7 @@ class Settings(object):
self.core = self._import('scrapy.conf.core_settings')
def _import(self, modulepath):
try:
return __import__(modulepath, {}, {}, [''])
except ImportError:
import sys
err = "Error: Can't find %s module in your python path\n"
sys.stderr.write(err % modulepath)
sys.exit(1)
return __import__(modulepath, {}, {}, [''])
def __getitem__(self, opt_name):
if opt_name in self.overrides: