fixing flake 8 errors during CMS build process
Change-Id: I8ead762b83a1398226d9787ef2cd900fa47f0a1a
Issue-ID: VVP-43
Signed-off-by: stark, steven <ss820f@att.com>
args = (DEFAULT_USERNAME, DEFAULT_EMAIL, DEFAULT_PASSWORD)
try:
User.objects.get(username=DEFAULT_USERNAME)
- except:
+ except Exception:
User.objects.create_superuser(*args)
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(