Implement UserError __unicode__ method

This commit is contained in:
Aanand Prasad 2014-01-15 12:01:17 +00:00
parent 887a30e327
commit a8e275a432
1 changed files with 3 additions and 0 deletions

View File

@ -5,3 +5,6 @@ from textwrap import dedent
class UserError(Exception):
def __init__(self, msg):
self.msg = dedent(msg).strip()
def __unicode__(self):
return self.msg