1
0
mirror of https://github.com/scrapy/scrapy.git synced 2025-02-25 09:24:20 +00:00

Pass exception directly to SkipTest()

It prints the same as passing `str(e)`
This commit is contained in:
Paul Tremberth 2016-02-21 01:16:46 +01:00
parent e9bd328936
commit ad4c1169c4

View File

@ -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.