Python 3 exception not printing new line
<p>I do not really know how to say it, but when I raise exception in python 3.2, '\n' aren't <em>parsed</em>...</p>

<p>Here is an example:</p>

<p><code>
    </p>

<pre><code>class ParserError(Exception):
    def __init__(self, message):
            super().__init__(self, message)

try:
    raise ParserError("This should have\na line break")
except ParserError as err:
    print(err)
</code></pre>

<pre>
$ ./test.py
(ParserError(...), 'This should have\na line break')
</pre>

<p>How do I make sure new lines are printed as new lines?</p>

<h1>Solution</h1>

<p><code>
    </p>

<pre>class ParserError(Exception):
    pass
</code></pre>

<p>or

    </p>

<pre>print(err.args[1])
</code></pre>
