aboutsummaryrefslogtreecommitdiffstats
path: root/src/account/tasks.py
diff options
context:
space:
mode:
authorTrevor Bramwell <tbramwell@linuxfoundation.org>2020-07-15 13:00:53 -0700
committerTrevor Bramwell <tbramwell@linuxfoundation.org>2020-07-15 13:00:53 -0700
commit4cc9426d72fe9baa8a4a7f56c6d43493bd011f02 (patch)
treeade06936c72c68b359b6a409bfebd7568c28eac0 /src/account/tasks.py
parent682f7ebb6d0be5ddd8e4c699e1f87fc20a3fe1e3 (diff)
Fix Flake8 Violations
Several minor issues found through flake8 should now be fixed in the code. Signed-off-by: Trevor Bramwell <tbramwell@linuxfoundation.org> Change-Id: I4f6e5dac5ed8378911598ded714602bbb3f6bd6b
Diffstat (limited to 'src/account/tasks.py')
-rw-r--r--src/account/tasks.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/account/tasks.py b/src/account/tasks.py
index 53fbaf5..df98c73 100644
--- a/src/account/tasks.py
+++ b/src/account/tasks.py
@@ -28,7 +28,7 @@ def sync_jira_accounts():
continue
try:
user.email = user_dict['emailAddress']
- except:
+ except KeyError:
pass
user.userprofile.url = user_dict['self']
user.userprofile.full_name = user_dict['displayName']