From 0ffefee36e4b9196449d0fe3e5db2bfe515b6dd8 Mon Sep 17 00:00:00 2001 From: Timo Ewalds Date: Thu, 22 Aug 2013 17:17:47 -0400 Subject: [PATCH] Still build a User even if no api is passed in --- tweepy/models.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tweepy/models.py b/tweepy/models.py index 0f10249..7ccb9b4 100644 --- a/tweepy/models.py +++ b/tweepy/models.py @@ -66,7 +66,7 @@ class Status(Model): status = cls(api) for k, v in json.items(): if k == 'user': - user_model = getattr(api.parser.model_factory, 'user') + user_model = getattr(api.parser.model_factory, 'user') if api else User user = user_model.parse(api, v) setattr(status, 'author', user) setattr(status, 'user', user) # DEPRECIATED -- 2.25.1