VVP-CMS fix flake8 errors during CMS build 55/37855/1
authorstark, steven <ss820f@att.com>
Thu, 22 Mar 2018 19:08:37 +0000 (12:08 -0700)
committerstark, steven <ss820f@att.com>
Thu, 22 Mar 2018 19:08:37 +0000 (12:08 -0700)
fixing flake 8 errors during CMS build process

Change-Id: I8ead762b83a1398226d9787ef2cd900fa47f0a1a
Issue-ID: VVP-43
Signed-off-by: stark, steven <ss820f@att.com>
django/cms/migrations/0002_user_application.py

index 42b26c0..0572603 100644 (file)
@@ -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(