From 4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 Mon Sep 17 00:00:00 2001 From: Trevor Bramwell Date: Wed, 15 Jul 2020 13:00:53 -0700 Subject: Fix Flake8 Violations Several minor issues found through flake8 should now be fixed in the code. Signed-off-by: Trevor Bramwell Change-Id: I4f6e5dac5ed8378911598ded714602bbb3f6bd6b --- src/account/views.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/account/views.py') diff --git a/src/account/views.py b/src/account/views.py index 1cb2275..d11a199 100644 --- a/src/account/views.py +++ b/src/account/views.py @@ -130,7 +130,7 @@ class JiraAuthenticatedView(RedirectView): email = "" try: email = jira.user(username).emailAddress - except: + except AttributeError: email = "" url = '/' # Step 3. Lookup the user or create them if they don't exist. -- cgit 1.2.3-korg