From: stark, steven Date: Thu, 22 Mar 2018 19:08:37 +0000 (-0700) Subject: VVP-CMS fix flake8 errors during CMS build X-Git-Tag: 2.0.0-ONAP~15 X-Git-Url: https://gerrit.onap.org/r/gitweb?a=commitdiff_plain;h=4819ac933ecf13a85fcc3e356eb5cb71317b5d03;p=vvp%2Fcms.git 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 --- 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(