Skip to content

Scrapy, a fast high-level web crawling & scraping framework for Python.

Pass exception directly to SkipTest()

Paul Tremberthad4c1169c49c
diff --git a/scrapy/utils/test.py b/scrapy/utils/test.py
index 2aa530902..d2ef68912 100644
--- a/scrapy/utils/test.py
+++ b/scrapy/utils/test.py
@@ -24,7 +24,7 @@ def skip_if_no_boto():
try:
is_botocore()
except NotConfigured as e:
- raise SkipTest(str(e))
+ raise SkipTest(e)
def get_s3_content_and_delete(bucket, path, with_key=False):
""" Get content from s3 key, and delete key afterwards.