Merge branch 'buildout-unicode-decode-error' of https://github.com/mfussenegger/jedi into linter

This commit is contained in:
Dave Halter
2015-12-17 12:50:26 +01:00
2 changed files with 3 additions and 2 deletions

View File

@@ -273,8 +273,8 @@ def _get_buildout_scripts(module_path):
firstline = f.readline()
if firstline.startswith('#!') and 'python' in firstline:
extra_module_paths.append(filepath)
except IOError as e:
# either permission error or race cond. because file got deleted
except (UnicodeDecodeError, IOError) as e:
# Probably a binary file; permission error or race cond. because file got deleted
# ignore
debug.warning(unicode(e))
continue

View File

@@ -0,0 +1 @@
<EFBFBD>PNG