mirror of
https://github.com/docker/compose.git
synced 2025-07-22 21:24:38 +02:00
Implement UserError __unicode__ method
This commit is contained in:
parent
887a30e327
commit
a8e275a432
@ -5,3 +5,6 @@ from textwrap import dedent
|
|||||||
class UserError(Exception):
|
class UserError(Exception):
|
||||||
def __init__(self, msg):
|
def __init__(self, msg):
|
||||||
self.msg = dedent(msg).strip()
|
self.msg = dedent(msg).strip()
|
||||||
|
|
||||||
|
def __unicode__(self):
|
||||||
|
return self.msg
|
||||||
|
Loading…
x
Reference in New Issue
Block a user