Fixing environment variable glitch

This commit is contained in:
Amber McCloughan 2022-08-26 02:52:09 -04:00
parent 23422f0ffd
commit 96d31ba8d3
1 changed files with 5 additions and 5 deletions

View File

@ -8,11 +8,11 @@ from time import sleep
from random import shuffle from random import shuffle
def get_arguments() -> Tuple[str, str, str, str]: def get_arguments() -> Tuple[bytes, bytes, bytes, bytes]:
consumer_key = os.environ['CONSUMER_KEY'] consumer_key = os.environ['CONSUMER_KEY'].encode('utf8')
consumer_secret = os.environ['CONSUMER_SECRET'] consumer_secret = os.environ['CONSUMER_SECRET'].encode('utf8')
access_token = os.environ['ACCESS_TOKEN'] access_token = os.environ['ACCESS_TOKEN'].encode('utf8')
access_token_secret = os.environ['ACCESS_TOKEN_SECRET'] access_token_secret = os.environ['ACCESS_TOKEN_SECRET'].encode('utf8')
return consumer_key, consumer_secret, access_token, access_token_secret return consumer_key, consumer_secret, access_token, access_token_secret