Fix file name completions when file name is too long
This commit is contained in:
1 parent
0e92be66db
commit
6e5e706288
1 file changed
+2
-1
@@ -33,7 +33,8 @@ def file_name_completions(inference_state, module_context, start_leaf, string,
|
||||
base_path = os.path.join(inference_state.project._path, string)
|
||||
try:
|
||||
listed = scandir(base_path)
|
||||
except FileNotFoundError:
|
||||
# OSError: [Errno 36] File name too long: '...'
|
||||
except (FileNotFoundError, OSError):
|
||||
return
|
||||
for entry in listed:
|
||||
name = entry.name
|
||||
|
||||
Reference in new issue
Block a user