We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 597ef02 commit 33a22a7Copy full SHA for 33a22a7
1 file changed
bpython/importcompletion.py
@@ -77,7 +77,7 @@ def find_modules(path):
77
name = os.path.splitext(name)[0]
78
try:
79
fo, pathname, _ = imp.find_module(name, [path])
80
- except ImportError:
+ except (ImportError, SyntaxError):
81
continue
82
else:
83
if fo is not None:
0 commit comments