title: How to remove the "Traceback most recent call last" in Python when raising an exception?
body: <p>I  am creating a Python program that requires the use of the OS module, and I would like to custom-report error messages. I am using try and except to accomplish this:</p>
  <pre class="lang-py prettyprint-override"><code>try:
      os.mkdir(name)
  except FileExistsError:
      raise FileExistsError(name + &quot;\n&quot; + &quot;                        ^ The directory you specified already exists.&quot;)
  </code></pre>
  <p>But, I would like to remove the</p>
  <pre class="lang-sh prettyprint-override"><code>Traceback (most recent call last):
    File &quot;file.py&quot;, line 20, in &lt;module&gt;
      raise FileExistsError(name + &quot;\n&quot; + &quot;                        ^ The directory you specified already exists.&quot;)
  </code></pre>
  <p>part so that the code that raises this exception is not printed every time that I raise the exception.</p>
  <p>How would I go about doing this?</p>