From d7c348e594a2024b8253846b467bd694a37c3375 Mon Sep 17 00:00:00 2001 From: Lynne Date: Mon, 12 Nov 2018 17:45:54 +1000 Subject: [PATCH] fixed a bug with the curiouscat profile pictures --- web.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/web.py b/web.py index 6b248e8..5d850e7 100755 --- a/web.py +++ b/web.py @@ -69,7 +69,7 @@ def home(): client = Mastodon(client_id=session['client_id'], client_secret=session['client_secret'], access_token=session['secret'], api_base_url=session['instance']) session['avi'] = client.account_verify_credentials()['avatar'] - if session['cc'] != "None": + if session['cc'] != "None" and session['cc'] != None: #update cc avi too r = requests.get("https://curiouscat.me/api/v2/profile?username={}".format(session['cc'])) j = r.json()