Skip to content

Commit

Permalink
catch TypeError from buf_from_path
Browse files Browse the repository at this point in the history
  • Loading branch information
wizza-smile committed Mar 21, 2015
1 parent 90df23d commit 698b3b0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/codeintel2/database/langlibbase.py
Original file line number Diff line number Diff line change
Expand Up @@ -103,7 +103,7 @@ def ensure_dir_scanned(self, dir, ctlr=None, reporter=None):
try:
buf = self.mgr.buf_from_path(join(dir, base),
lang=self.lang)
except (EnvironmentError, CodeIntelError), ex:
except (EnvironmentError, CodeIntelError, TypeError), ex:
# This can occur if the path does not exist, such as a
# broken symlink, or we don't have permission to read
# the file, or the file does not contain text.
Expand Down

0 comments on commit 698b3b0

Please sign in to comment.