Browse Source

Remove useless (and wrong) argument

pull/176/head
Louis 9 years ago
parent
commit
b2a9f4c81a
  1. 2
      patacrep/songs/chordpro/__init__.py
  2. 2
      patacrep/templates.py

2
patacrep/songs/chordpro/__init__.py

@ -143,7 +143,7 @@ class Chordpro2LatexSong(ChordproSong):
Add an error to the list of errors if argument is invalid.
"""
try:
return lang2babel(lang, raise_unknown=True)
return lang2babel(lang)
except UnknownLanguage as error:
new_error = SongUnknownLanguage(
self,

2
patacrep/templates.py

@ -107,7 +107,7 @@ class Renderer:
Add an error to the list of errors if argument is invalid.
"""
try:
return lang2babel(lang, raise_unknown=True)
return lang2babel(lang)
except UnknownLanguage as error:
error.message = "Songbook: {}".format(error.message)
LOGGER.warning(error.message)

Loading…
Cancel
Save