Skip to content

Commit

Permalink
Make return statements consistent (please Pylint)
Browse files Browse the repository at this point in the history
  • Loading branch information
bittner committed Jul 8, 2018
1 parent 374d728 commit 175b5cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions hooks/post_gen_project.py
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,8 @@ def shell(command, capture=False):
stdout = check_output(command, shell=True, stderr=STDOUT,
universal_newlines=True)
return str(stdout)
else:
check_call(command, shell=True)

return check_call(command, shell=True)
except CalledProcessError as err:
LOG.error('Project generation failed.')
sys.exit(err.returncode)
Expand Down

0 comments on commit 175b5cb

Please sign in to comment.