From 191f2f0fcf983095d83aed739b7961d342100adf Mon Sep 17 00:00:00 2001 From: Ryan Lerch Date: Sep 16 2020 11:37:35 +0000 Subject: fix infofasjson get_user_attrs returning None Previously if using the fasjson info plugin, and the fasjson client returned an error, we were returning None. However, we need to return an empty dict, otherwise login/common.py in ipsilon would raise an error. Signed-off-by: Ryan Lerch --- diff --git a/ipsilon/info/infofasjson.py b/ipsilon/info/infofasjson.py index 854cf53..ffcd13f 100644 --- a/ipsilon/info/infofasjson.py +++ b/ipsilon/info/infofasjson.py @@ -48,7 +48,7 @@ Info plugin that retrieves user data from FASJSON. """ user_agreements_data = client.list_user_agreements(username=user).result except Exception as e: self.error(f'FASJSON error: {e}') - return + return {} # assumption that first email is the default user_data['email'] = user_data['emails'][0]