Skip to content

Commit

Permalink
fix TypeError: NoneType object is not subscriptable (#23)
Browse files Browse the repository at this point in the history
  • Loading branch information
SUTFutureCoder authored Feb 20, 2024
1 parent c8808de commit 519a0dc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -319,7 +319,7 @@ def job():
# Find the account
account = None
for acc in get_accounts("twitter"):
if acc["id"] == twitter_uuid:
if acc["id"] == selected_product["twitter_uuid"]:
account = acc

afm = AffiliateMarketing(selected_product["affiliate_link"], account["firefox_profile"], account["id"], account["nickname"], account["topic"])
Expand Down

0 comments on commit 519a0dc

Please sign in to comment.