From: Timo Ewalds Date: Thu, 22 Aug 2013 21:17:47 +0000 (-0400) Subject: Still build a User even if no api is passed in X-Git-Url: https://vcs.fsf.org/?a=commitdiff_plain;h=0ffefee36e4b9196449d0fe3e5db2bfe515b6dd8;p=tweepy.git Still build a User even if no api is passed in --- 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