From ab49e4acb9a50c06651277800a88be6fc9b19fe9 Mon Sep 17 00:00:00 2001 From: Nathan Thomas Date: Wed, 11 Jul 2018 14:59:16 -0600 Subject: [PATCH] Have values of type dict returned also be converted to type MicroDict. --- O365/connection.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/O365/connection.py b/O365/connection.py index 5753355bfaa49..093003c416ae9 100644 --- a/O365/connection.py +++ b/O365/connection.py @@ -17,6 +17,8 @@ def __getitem__(self, key): result = super(MicroDict, self).get(key[:1].lower() + key[1:], None) if result is None: result = super(MicroDict, self).get(key[:1].upper() + key[1:]) + if type(result) is dict: + result = MicroDict(result) return result