title: How to get only the module name ModuleNotFoundError
body: <p>How only to print the module name with ModuleNotFoundError arguments in Python.</p>
  <p>My code:</p>
  <pre><code>try:
      import requests
  except ModuleNotFoundError as error1:
      print(error1)
  </code></pre>
  <p>In this case I am getting output as below:</p>
  <pre><code>&gt;&gt; No module named *'requests'*
  </code></pre>
  <p>I want to be printed only the <em>name of the module</em> that met the exception.</p>
  <p>Output I need:</p>
  <pre><code>&gt;&gt; 'requests'
  </code></pre>