X-Git-Url: https://git.mdrn.pl/librarian.git/blobdiff_plain/1e438727014e352799b4dfb8d3dfb2f8e7a58251..f8442984a021793164661a54ec84ae9caaf9862b:/librarian/__init__.py diff --git a/librarian/__init__.py b/librarian/__init__.py index 5c4a355..5b6981d 100644 --- a/librarian/__init__.py +++ b/librarian/__init__.py @@ -6,7 +6,13 @@ import os class ParseError(Exception): - pass + def __str__(self): + """ Dirty workaround for Python Unicode handling problems. """ + return self.message.message + + def __unicode__(self): + """ Dirty workaround for Python Unicode handling problems. """ + return self.message.message class ValidationError(Exception): pass