From 96d31ba8d34275081702e6f3a49258b5fe037585 Mon Sep 17 00:00:00 2001 From: Amber Date: Fri, 26 Aug 2022 02:52:09 -0400 Subject: [PATCH] Fixing environment variable glitch --- tweetbot.py | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/tweetbot.py b/tweetbot.py index 538a83e..4e29ec4 100644 --- a/tweetbot.py +++ b/tweetbot.py @@ -8,11 +8,11 @@ from time import sleep from random import shuffle -def get_arguments() -> Tuple[str, str, str, str]: - consumer_key = os.environ['CONSUMER_KEY'] - consumer_secret = os.environ['CONSUMER_SECRET'] - access_token = os.environ['ACCESS_TOKEN'] - access_token_secret = os.environ['ACCESS_TOKEN_SECRET'] +def get_arguments() -> Tuple[bytes, bytes, bytes, bytes]: + consumer_key = os.environ['CONSUMER_KEY'].encode('utf8') + consumer_secret = os.environ['CONSUMER_SECRET'].encode('utf8') + access_token = os.environ['ACCESS_TOKEN'].encode('utf8') + access_token_secret = os.environ['ACCESS_TOKEN_SECRET'].encode('utf8') return consumer_key, consumer_secret, access_token, access_token_secret