dictionary structure of X_API_CREDENTIALS
This commit is contained in:
@@ -100,7 +100,7 @@ def validate_twitter_credentials():
|
||||
logging.info("Validating Twitter API credentials for all authors")
|
||||
valid_credentials = []
|
||||
for author in AUTHORS:
|
||||
credentials = next((cred for cred in X_API_CREDENTIALS if cred["username"] == author["username"]), None)
|
||||
credentials = X_API_CREDENTIALS.get(author["username"])
|
||||
if not credentials:
|
||||
logging.error(f"No X credentials found for {author['username']} in X_API_CREDENTIALS")
|
||||
continue
|
||||
|
||||
Reference in New Issue
Block a user