We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ab27e97 commit 4d86322Copy full SHA for 4d86322
jupyter_drives/manager.py
@@ -44,9 +44,14 @@ def __init__(self, config: traitlets.config.Config) -> None:
44
45
# initiate aiobotocore session if we are dealing with S3 drives
46
if self._config.provider == 's3':
47
- if self._config.access_key_id is not None and self._config.secret_access_key is not None:
+ if self._config.access_key_id and self._config.secret_access_key:
48
self._s3_clients = {}
49
self._s3_session = get_session()
50
+ else:
51
+ raise tornado.web.HTTPError(
52
+ status_code= httpx.codes.BAD_REQUEST,
53
+ reason="No credentials specified. Please set them in your user jupyter_server_config file.",
54
+ )
55
56
@property
57
def base_api_url(self) -> str:
0 commit comments