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:
parent
e9bd328936
commit
ad4c1169c4
@ -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.
|
||||
|
Loading…
x
Reference in New Issue
Block a user