title: Printing Multi-Line Raised Exceptions
body: <p>I am grabbing an update from SVN via Python.</p>
  
  <p>I have this:</p>
  
  <pre><code>try: 
      output = subprocess.check_output(svn.update_cmd,
                                       stderr=subprocess.STDOUT, shell=True)
      print output
      print 'finished svn update'
  
      revision_number = output.split()[-1].rstrip('.') #revision number
      if log_update:
          write_update(revision_number)
      return revision_number
  except subprocess.CalledProcessError, e:
      raise SVNUpdateError(e.output)
  </code></pre>
  
  <p>When I raise my custom <code>SNVUpdateError</code>, I am getting the newlines printing out as <code>\n</code>s.</p>
  
  <p>If I <code>try:except</code> the <code>SVNUpdateError</code>, I can pretty-print the line, but it comes out as stdout, and passes on to the next block of code. I would like to raise the exception, bail out of the task altogether, and print the results from the SVN client as to why things went south without newline and other special characters.</p>
  
  <p>Thanks.</p>