return ext

def spider_error(self, failure, response, spider):
    print('Error on {0}, traceback: {1}'.format(response.url, failure.
        getTraceback()))
how to process all kinds of exception in a scrapy project, in errback and callback?