Skip to content

Commit 49c14f8

Browse files
committed
Made exceptions more explicit
1 parent 818da99 commit 49c14f8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

nipype/interfaces/tests/test_io.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323
try:
2424
import boto
2525
from boto.s3.connection import S3Connection, OrdinaryCallingFormat
26-
except:
26+
except ImportError:
2727
noboto = True
2828

2929
# Check for boto3
3030
noboto3 = False
3131
try:
3232
import boto3
3333
from botocore.utils import fix_s3_host
34-
except:
34+
except ImportError:
3535
noboto3 = True
3636

3737
# Check for fakes3
@@ -42,7 +42,7 @@
4242
fakes3 = True
4343
else:
4444
fakes3 = False
45-
except:
45+
except subprocess.CalledProcessError:
4646
fakes3 = False
4747

4848
def test_datagrabber():

0 commit comments

Comments
 (0)