Skip to content

Commit cd4eab7

Browse files
committed
minor change to fix DonJayamanne#374
1 parent 9f023f3 commit cd4eab7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

pythonFiles/jedi/api/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -90,7 +90,7 @@ def __init__(self, source=None, line=None, column=None, path=None,
9090
try:
9191
with open(path) as f:
9292
source = f.read()
93-
except:
93+
except UnicodeDecodeError:
9494
with open(path, encoding=encoding) as f:
9595
source = f.read()
9696

0 commit comments

Comments
 (0)