Skip to content
Permalink
Browse files
asciidoc: Always show OSError as req_missing
getnikola/nikola#2431

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 6, 2016
1 parent d812509 commit d0e652ba08c19512a2236e4ceec25516165319f5
Showing with 2 additions and 2 deletions.
  1. +2 −2 v7/asciidoc/asciidoc.py
@@ -55,8 +55,8 @@ def compile_html(self, source, dest, is_two_file=True):
try:
subprocess.check_call((binary, '-b', 'html5', '-s', '-o', dest, source))
except OSError as e:
if e.strreror == 'No such file or directory':
req_missing(['asciidoc'], 'build this site (compile with asciidoc)', python=False)
print(e)
req_missing(['asciidoc'], 'build this site (compile with asciidoc)', python=False)

def create_post(self, path, **kw):
content = kw.pop('content', 'Write your post here.')

0 comments on commit d0e652b

Please sign in to comment.