Issue #18200: Back out usage of ModuleNotFoundError (8d28d44f3a9a)
diff --git a/Lib/pydoc.py b/Lib/pydoc.py
index 9cc3126..61d5165 100755
--- a/Lib/pydoc.py
+++ b/Lib/pydoc.py
@@ -1892,7 +1892,7 @@
def showtopic(self, topic, more_xrefs=''):
try:
import pydoc_data.topics
- except ModuleNotFoundError:
+ except ImportError:
self.output.write('''
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.
@@ -1932,7 +1932,7 @@
"""
try:
import pydoc_data.topics
- except ModuleNotFoundError:
+ except ImportError:
return('''
Sorry, topic and keyword documentation is not available because the
module "pydoc_data.topics" could not be found.