diff options
Diffstat (limited to 'ensure_projects.py')
-rwxr-xr-x | ensure_projects.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/ensure_projects.py b/ensure_projects.py index cfce618..061a413 100755 --- a/ensure_projects.py +++ b/ensure_projects.py @@ -1,4 +1,4 @@ -#!/usr/bin/python +#!/usr/bin/python3 from bin import django_setup from django.conf import settings @@ -9,6 +9,6 @@ django_setup() # must be called to get sys.path and django settings in place for p in settings.DEFAULT_PROJECTS: try: Project.objects.get(linkname=p['linkname']) - except: + except Exception: print('Creating project: %s' % p['linkname']) Project.objects.create(**p) |