mirror of https://github.com/docker/compose.git
Implement UserError __unicode__ method
This commit is contained in:
parent
887a30e327
commit
a8e275a432
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue