Skip to content

Commit b8a9955

Browse files
committed
iterate on include drive functionality
1 parent 565f46a commit b8a9955

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

jupyter_drives/manager.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -199,7 +199,7 @@ def include_drive(self, include_drive_name):
199199
except Exception as e:
200200
raise tornado.web.HTTPError(
201201
status_code= httpx.codes.BAD_REQUEST,
202-
reason= f"The following error occured when excluding the drive: {e}"
202+
reason= f"The following error occured when including the drive: {e}"
203203
)
204204

205205
return

src/contents.ts

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,8 @@ import {
2323
presignedLink,
2424
createDrive,
2525
getDrivesList,
26-
excludeDrive
26+
excludeDrive,
27+
includeDrive
2728
} from './requests';
2829

2930
let data: Contents.IModel = {
@@ -712,7 +713,7 @@ export class Drive implements Contents.IDrive {
712713
* @returns A promise which resolves with the contents model.
713714
*/
714715
async includeDrive(driveName: string): Promise<Contents.IModel> {
715-
data = await this.includeDrive(driveName);
716+
data = await includeDrive(driveName);
716717

717718
Contents.validateContentsModel(data);
718719
this._fileChanged.emit({

0 commit comments

Comments
 (0)