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 fefb01e commit 96465a8Copy full SHA for 96465a8
cmd2/cmd2.py
@@ -5358,10 +5358,10 @@ def run_editor(self, file_path: str | None = None) -> None:
5358
"""Run a text editor and optionally open a file with it.
5359
5360
:param file_path: optional path of the file to edit. Defaults to None.
5361
- :raises EnvironmentError: if self.editor is not set
+ :raises ValueError: if self.editor is not set
5362
"""
5363
if not self.editor:
5364
- raise OSError("Please use 'set editor' to specify your text editing program of choice.")
+ raise ValueError("Please use 'set editor' to specify your text editing program of choice.")
5365
5366
command = su.quote(os.path.expanduser(self.editor))
5367
if file_path:
0 commit comments