| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -781,7 +781,10 @@ def execute(self, | |||
| 781 | 781 | log.info(' '.join(redacted_command)) | |
| 782 | 782 | ||
| 783 | 783 | # Allow the user to have the command executed in their working dir. | |
| 784 | - cwd = self._working_dir or os.getcwd() | ||
| 784 | + try: | ||
| 785 | + cwd = self._working_dir or os.getcwd() # type: Union[None, str] | ||
| 786 | + except FileNotFoundError: | ||
| 787 | + cwd = None | ||
| 785 | 788 | ||
| 786 | 789 | # Start the process | |
| 787 | 790 | inline_env = env | |
| Back | FazBrowse Home | New Git URL |
0 commit comments