File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change @@ -45,6 +45,11 @@ export class ExportCommands implements IDisposable {
45
45
}
46
46
47
47
private async export ( model : INotebookModel , exportMethod ?: ExportFormat ) {
48
+ if ( ! model ) {
49
+ // possibly show promp that you can't export if no model?
50
+ return ;
51
+ }
52
+
48
53
if ( exportMethod ) {
49
54
await this . exportManager . export ( exportMethod , model ) ;
50
55
} else {
Original file line number Diff line number Diff line change @@ -15,7 +15,7 @@ const progressMessages = {
15
15
[ ReportableAction . NotebookConnect ] : DataScience . connectingToJupyter ( ) ,
16
16
[ ReportableAction . NotebookStart ] : DataScience . startingJupyterNotebook ( ) ,
17
17
[ ReportableAction . RawKernelConnecting ] : DataScience . rawKernelConnectingSession ( ) ,
18
- [ ReportableAction . CheckingIfImportIsSupported ] : 'Checking if import is supported' , // TODO: Localize
18
+ [ ReportableAction . CheckingIfImportIsSupported ] : 'Checking if import is supported' , // Localize these later
19
19
[ ReportableAction . InstallingMissingDependencies ] : 'Installing missing dependencies' ,
20
20
[ ReportableAction . ExportNotebookToPython ] : 'Exporting Notebook to Python'
21
21
} ;
You can’t perform that action at this time.
0 commit comments