Commits

Andreas Stührk committed c921fc4

Ignore IOError raised by ``imp.find_module``. Fixes #237.

Comments (0)

Files changed (1)

bpython/importcompletion.py

             with catch_warnings():
                 warnings.simplefilter("ignore", ImportWarning)
                 fo, pathname, _ = imp.find_module(name, [path])
-        except (ImportError, SyntaxError):
+        except (ImportError, IOError, SyntaxError):
             continue
         except UnicodeEncodeError:
             # Happens with Python 3 when there is a filename in some