diff options
author | stark, steven <ss820f@att.com> | 2018-03-22 12:08:37 -0700 |
---|---|---|
committer | stark, steven <ss820f@att.com> | 2018-03-22 12:08:37 -0700 |
commit | 4819ac933ecf13a85fcc3e356eb5cb71317b5d03 (patch) | |
tree | 6747723468c4a529fa7264242b498a3e7aee206c /django | |
parent | 50c88317386c81f383efdfc85947497b72e8fd7e (diff) |
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 <ss820f@att.com>
Diffstat (limited to 'django')
-rw-r--r-- | django/cms/migrations/0002_user_application.py | 4 |
1 files 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( |