Skip to content

Commit 95aabde

Browse files
Remove dj-specific directory not found error.
1 parent 6ead56d commit 95aabde

File tree

2 files changed

+2
-8
lines changed

2 files changed

+2
-8
lines changed

datajoint/errors.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -81,12 +81,6 @@ class MissingExternalFile(DataJointError):
8181
"""
8282

8383

84-
class DirectoryInaccessible(DataJointError):
85-
"""
86-
Error raised when a local directory is inaccessible
87-
"""
88-
89-
9084
class BucketInaccessible(DataJointError):
9185
"""
9286
Error raised when a S3 bucket is inaccessible

datajoint/external.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from collections import Mapping
33
from tqdm import tqdm
44
from .settings import config
5-
from .errors import DataJointError, MissingExternalFile, DirectoryInaccessible
5+
from .errors import DataJointError, MissingExternalFile
66
from .hash import uuid_from_buffer, uuid_from_file
77
from .table import Table
88
from .declare import EXTERNAL_TABLE_ROOT
@@ -47,7 +47,7 @@ def __init__(self, connection, store=None, database=None):
4747
self.declare()
4848
self._s3 = None
4949
if self.spec['protocol'] == 'file' and not Path(self.spec['location']).is_dir():
50-
raise DirectoryInaccessible('Inaccessible local directory %s' %
50+
raise FileNotFoundError('Inaccessible local directory %s' %
5151
self.spec['location']) from None
5252

5353
@property

0 commit comments

Comments
 (0)