Skip to content

Commit 01953de

Browse files
authored
[Updated] Fix invalid operation on null-like value workspace (#591)
1 parent e1f179e commit 01953de

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

configure.py

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -744,9 +744,11 @@ def config_info_line(name, help_text):
744744

745745
def check_safe_workspace_path(workspace):
746746
"""Check whether if the workspace path is safe"""
747-
normal_flag = True
748747
if workspace is None:
749-
normal_flag = False
748+
remove_configure_file()
749+
raise Exception("Invalid workspace path: workspace is None!")
750+
751+
normal_flag = True
750752
for c in _DENY_PATH_LIST:
751753
if c in workspace:
752754
normal_flag = False

0 commit comments

Comments
 (0)