Skip to content

Commit

Permalink
Merge pull request #22 from SohuTech/fix-incompatible-0.0.7
Browse files Browse the repository at this point in the history
修复pre hook的引入导致旧配置无法使用的兼容问题
  • Loading branch information
the5fire authored May 16, 2018
2 parents a5a8df9 + caa59c9 commit 3ca10c3
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 3ca10c3

Please sign in to comment.