Browse Source

pylint

pull/122/head
Louis 9 years ago
parent
commit
2207a1f354
  1. 10
      patacrep/songs/chordpro/__init__.py

10
patacrep/songs/chordpro/__init__.py

@ -81,7 +81,10 @@ class Chordpro2HtmlSong(ChordproSong):
datadir, filename, extensions = self.search_datadir_file(filename, extensions, datadirs)
return os.path.join(datadir, filename + extensions)
except FileNotFoundError:
LOGGER.warning("Song '%s' (datadir '%s'): File '%s' not found.", self.subpath, self.datadir, filename)
LOGGER.warning(
"Song '%s' (datadir '%s'): File '%s' not found.",
self.subpath, self.datadir, filename,
)
return None
class Chordpro2LatexSong(ChordproSong):
@ -98,7 +101,10 @@ class Chordpro2LatexSong(ChordproSong):
)
return filename
except FileNotFoundError:
LOGGER.warning("Song '%s' (datadir '%s'): File '%s' not found.", self.subpath, self.datadir, filename)
LOGGER.warning(
"Song '%s' (datadir '%s'): File '%s' not found.",
self.subpath, self.datadir, filename,
)
return None
class Chordpro2ChordproSong(ChordproSong):

Loading…
Cancel
Save