From 4819ac933ecf13a85fcc3e356eb5cb71317b5d03 Mon Sep 17 00:00:00 2001 From: "stark, steven" Date: Thu, 22 Mar 2018 12:08:37 -0700 Subject: [PATCH] VVP-CMS fix flake8 errors during CMS build fixing flake 8 errors during CMS build process Change-Id: I8ead762b83a1398226d9787ef2cd900fa47f0a1a Issue-ID: VVP-43 Signed-off-by: stark, steven --- django/cms/migrations/0002_user_application.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/django/cms/migrations/0002_user_application.py b/django/cms/migrations/0002_user_application.py index 42b26c0..0572603 100644 --- a/django/cms/migrations/0002_user_application.py +++ b/django/cms/migrations/0002_user_application.py @@ -62,7 +62,7 @@ def create_emuser(apps, schema_editor): args = (DEFAULT_USERNAME, DEFAULT_EMAIL, DEFAULT_PASSWORD) try: User.objects.get(username=DEFAULT_USERNAME) - except: + except Exception: User.objects.create_superuser(*args) @@ -77,7 +77,7 @@ def create_emapp(apps, schema_editor): application = None try: application = Application.objects.get(client_id=DEFAULT_CLIENT_ID) - except: + except Exception: # If client_secret and client_id not supplied, a unique one will be # generated application = Application.objects.create( -- 2.16.6