Skip to content

Commit b76c017

Browse files
committed
iterate on location extraction
1 parent c1e6c8b commit b76c017

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

jupyter_drives/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -552,7 +552,7 @@ async def _get_drive_location(self, drive_name):
552552
# set temporary client for location extraction
553553
async with self._s3_session.create_client('s3', aws_secret_access_key=self._config.secret_access_key, aws_access_key_id=self._config.access_key_id, aws_session_token=self._config.session_token) as client:
554554
result = await client.get_bucket_location(Bucket=drive_name)
555-
if location is not None:
555+
if result['LocationConstraint'] is not None:
556556
location = result['LocationConstraint']
557557
except Exception as e:
558558
raise tornado.web.HTTPError(

0 commit comments

Comments
 (0)