Brett Cannon added the comment:

That's a good point, Serhiy, since that's what the exception is signaling. So 
yes, the exception should be ModuleNotFounderror.

----------
title: Have importlib.reload() raise ImportError when a spec can't be found -> 
Have importlib.reload() raise ModuleNotFoundError when a spec can't be found

_______________________________________
Python tracker <rep...@bugs.python.org>
<http://bugs.python.org/issue29851>
_______________________________________
_______________________________________________
Python-bugs-list mailing list
Unsubscribe: 
https://mail.python.org/mailman/options/python-bugs-list/archive%40mail-archive.com

Reply via email to