From 3359906e4287fb441fbc9c7734eb1aae321c385b Mon Sep 17 00:00:00 2001 From: Brendan Howell Date: Tue, 16 May 2017 14:27:59 +0200 Subject: [PATCH] fix missing auth ref --- screenless/bureau/publicrelations/publicrelations.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/screenless/bureau/publicrelations/publicrelations.py b/screenless/bureau/publicrelations/publicrelations.py index 4f57ffb..6ab29fd 100644 --- a/screenless/bureau/publicrelations/publicrelations.py +++ b/screenless/bureau/publicrelations/publicrelations.py @@ -43,8 +43,8 @@ class PublicRelations(Bureau): oauth_token, oauth_secret = twitter.read_token_file(TW_CREDS) self.t = TWrapper() - self.t.t = twitter.Twitter(auth=twitter.OAuth(oauth_token, oauth_secret, - CK, CS)) + self.auth = twitter.OAuth(oauth_token, oauth_secret, CK, CS) + self.t.t = twitter.Twitter(auth=self.auth) @add_command("tweetpic", "Post a Document Camera Image to Twitter") def tweet_pic(self):