diff --git a/nbconvert/nbconvertapp.py b/nbconvert/nbconvertapp.py index 7f5b4ba36..cee32410f 100755 --- a/nbconvert/nbconvertapp.py +++ b/nbconvert/nbconvertapp.py @@ -605,6 +605,7 @@ def convert_notebooks(self): "Please specify an output format with '--to '." f"\nThe following formats are available: {get_export_names()}" ) + raise ValueError(msg) # initialize the exporter cls = get_exporter(self.export_format)