Skip to content

Commit

Permalink
asciidoc: Always show OSError as req_missing
Browse files Browse the repository at this point in the history
getnikola/nikola#2431

Signed-off-by: Chris Warrick <kwpolska@gmail.com>
  • Loading branch information
Kwpolska committed Aug 6, 2016
1 parent d812509 commit d0e652b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions v7/asciidoc/asciidoc.py
Expand Up @@ -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.')
Expand Down

0 comments on commit d0e652b

Please sign in to comment.