2014-01-06 03:26:32 +01:00
|
|
|
from __future__ import absolute_import
|
2013-12-11 15:25:32 +01:00
|
|
|
from textwrap import dedent
|
|
|
|
|
|
|
|
|
|
|
|
class UserError(Exception):
|
|
|
|
def __init__(self, msg):
|
|
|
|
self.msg = dedent(msg).strip()
|
2014-01-15 13:01:17 +01:00
|
|
|
|
|
|
|
def __unicode__(self):
|
|
|
|
return self.msg
|