Permalink
Browse files

Merge pull request #66 from tkf/no-ioerror

Ignore IOError when checking Python file
  • Loading branch information...
2 parents 03f4dd5 + 4a34d98 commit e2d1d55274e93a4fdaab576f7ac1b3273512f8bc @davidhalter committed Nov 20, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 jedi/dynamic.py
View
@@ -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:

0 comments on commit e2d1d55

Please sign in to comment.