Skip to content
This repository has been archived by the owner on Jul 15, 2022. It is now read-only.

Commit

Permalink
Added NameError except for deploy just to make sure bootstrap runs co…
Browse files Browse the repository at this point in the history
…rrectly. Fixes #86
  • Loading branch information
aboutaaron committed Feb 25, 2015
1 parent 9050350 commit 8273caa
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions fabfile/deploy.py
Original file line number Diff line number Diff line change
Expand Up @@ -47,6 +47,12 @@
log("Yo! Add AWS_ACCESS_KEY_ID and AWS_SECRET_ACCESS_KEY to ")
log("settings/local_settings.py before deploying\n")

except NameError:
# `fab bootstrap` will fail because boto will not be defined when it runs
# therefore we catch the NameError here to make sure fabric can run
# when the project begins bootstrapping.
pass


@task
def gzip_assets():
Expand Down

0 comments on commit 8273caa

Please sign in to comment.