diff --git a/patacrep/latex/__init__.py b/patacrep/latex/__init__.py index 83d12906..1f48a0e4 100644 --- a/patacrep/latex/__init__.py +++ b/patacrep/latex/__init__.py @@ -87,6 +87,9 @@ class UnknownLanguage(Exception): self.fallback = fallback self.message = message + def __str__(self): + return self.message + def checklanguage(lang): """Check that `lang` is a known language.