scrapy/scrapy — pull request #902 by kmike (2014-09-24 07:39:49+00:00)
Title: [MRG] scrapy.utils.misc.load_object should print full traceback

Currently `load_object` doesn't provide a traceback; this makes debugging harder for no good reason. Examples: https://github.com/scrapy/scrapy/issues/266 and https://github.com/scrapy/scrapy/issues/901.

The only case when 'path' provides extra info is when the module referenced by 'path' imports fine, but something in this module raises another ImportError. But this is exactly the case where 'path' doesn't matter much for debugging. In all other cases information about 'path' can be get from the traceback. 'Error loading object' message is not useful either because traceback already shows that an error happened in `load_object`.

So just removing this try/except makes things 146% better.