Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Ignore IOError when checking Python file

Emacs uses a symbolic link to non-existing file for locking file.
It has the same extension as the original file.  Therefore, Jedi
must ignore IOError when trying to open this symbolic file.
  • Loading branch information...
commit 4a34d989671badd7a443859ec09a874010226b21 1 parent 03f4dd5
@tkf tkf authored
Showing with 4 additions and 1 deletion.
  1. +4 −1 jedi/dynamic.py
View
5 jedi/dynamic.py
@@ -33,7 +33,10 @@ def check_python_file(path):
try:
return builtin.CachedModule.cache[path][1].module
except KeyError:
- return check_fs(path)
+ try:
+ return check_fs(path)
+ except IOError:
+ return None
def check_fs(path):
with open(path) as f:
Please sign in to comment.
Something went wrong with that request. Please try again.