Skip to content

Commit

Permalink
修复pre hook的引入导致旧配置无法使用的兼容问题
Browse files Browse the repository at this point in the history
  • Loading branch information
the5fire committed May 16, 2018
1 parent a5a8df9 commit caa59c9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions essay/tasks/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ def deploy(version, venv_dir, profile):

virtualenv.ensure(venv_dir)

pre_hook = env.DEPLOY_PRE_HOOK
post_hook = env.DEPLOY_POST_HOOK
pre_hook = getattr(env, 'DEPLOY_PRE_HOOK', None)
post_hook = getattr(env, 'DEPLOY_POST_HOOK', None)

with virtualenv.activate(venv_dir):
if callable(pre_hook):
Expand Down

0 comments on commit caa59c9

Please sign in to comment.