Browse Source

More verbose exception

pull/176/head
Louis 9 years ago
parent
commit
0af000e49d
  1. 3
      patacrep/latex/__init__.py

3
patacrep/latex/__init__.py

@ -87,6 +87,9 @@ class UnknownLanguage(Exception):
self.fallback = fallback self.fallback = fallback
self.message = message self.message = message
def __str__(self):
return self.message
def checklanguage(lang): def checklanguage(lang):
"""Check that `lang` is a known language. """Check that `lang` is a known language.

Loading…
Cancel
Save