diff --git a/snipt/fabfile.py b/snipt/fabfile.py index 929569f..98f4cb6 100644 --- a/snipt/fabfile.py +++ b/snipt/fabfile.py @@ -6,8 +6,11 @@ def staticfiles(): BASE_PATH = os.path.dirname(__file__) local('lessc %s/media/css/style.less %s/media/css/style.css' % (BASE_PATH, BASE_PATH)) local('coffee -c %s/media/js/script.coffee' % BASE_PATH) - local('hg commit -m "Autocommit by [fab staticfiles]"') - local('hg push') + try: + local('hg commit -m "Autocommit by [fab staticfiles]"') + local('hg push') + except: + pass local('%s/manage.py collectstatic' % BASE_PATH) def deployall():