mirror of https://gitlab.com/bashrc2/epicyon
Check for dict
parent
133185d3e9
commit
24099d5025
|
@ -278,6 +278,7 @@ def html_profile_after_search(authorized: bool,
|
|||
|
||||
avatar_url = ''
|
||||
if profile_json.get('icon'):
|
||||
if isinstance(profile_json['icon'], dict):
|
||||
if profile_json['icon'].get('url'):
|
||||
url_str = get_url_from_post(profile_json['icon']['url'])
|
||||
avatar_url = remove_html(url_str)
|
||||
|
|
Loading…
Reference in New Issue