Browse Source

More precise exception handling

pull/169/head
Louis 9 years ago
parent
commit
0ebf52a9c9
  1. 4
      patacrep/build.py

4
patacrep/build.py

@ -228,7 +228,7 @@ class SongbookBuilder(object):
stderr=PIPE, stderr=PIPE,
universal_newlines=True, universal_newlines=True,
) )
except Exception as error: except FileNotFoundError as error:
raise errors.ExecutableNotFound(compiler) raise errors.ExecutableNotFound(compiler)
# Test if lilypond compiler is accessible # Test if lilypond compiler is accessible
@ -242,7 +242,7 @@ class SongbookBuilder(object):
stderr=PIPE, stderr=PIPE,
universal_newlines=True, universal_newlines=True,
) )
except Exception as error: except FileNotFoundError as error:
raise errors.ExecutableNotFound(lilypond_compiler) raise errors.ExecutableNotFound(lilypond_compiler)
# Perform compilation # Perform compilation

Loading…
Cancel
Save