diff --git a/concrete/util/twitter.py b/concrete/util/twitter.py index 05c1109..be4434f 100644 --- a/concrete/util/twitter.py +++ b/concrete/util/twitter.py @@ -136,7 +136,7 @@ def set_flat_fields(concrete_object, twitter_dict): entries will be used to set fields on concrete_object """ for key in twitter_dict.keys(): - if type(twitter_dict[key]) != dict: + if not isinstance(twitter_dict[key], dict): camelcased_key = snake_case_to_camelcase(key) if hasattr(concrete_object, camelcased_key): setattr(concrete_object, camelcased_key, twitter_dict[key])