From 3d5853f9f9a13a2c9547a270ce17f82fa4cd9fb4 Mon Sep 17 00:00:00 2001 From: Nick Sergeant Date: Sun, 23 Oct 2011 23:20:08 -0400 Subject: [PATCH] Autocommit by [fab staticfiles] --- snipt/fabfile.py | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) 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():