mirror of https://gitlab.com/bashrc2/epicyon
Check that attachment is a list
parent
b43e7fc8cd
commit
5cd720c77f
2
briar.py
2
briar.py
|
@ -17,6 +17,8 @@ def get_briar_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
2
cwtch.py
2
cwtch.py
|
@ -17,6 +17,8 @@ def get_cwtch_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
|
@ -35,6 +35,8 @@ def get_donation_url(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
donation_type = _get_donation_types()
|
donation_type = _get_donation_types()
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
|
|
|
@ -17,6 +17,8 @@ def get_enigma_pub_key(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
2
git.py
2
git.py
|
@ -230,6 +230,8 @@ def get_repo_url(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
repo_type = ('github', 'gitlab', 'codeberg', 'launchpad',
|
repo_type = ('github', 'gitlab', 'codeberg', 'launchpad',
|
||||||
'sourceforge', 'bitbucket', 'gitea')
|
'sourceforge', 'bitbucket', 'gitea')
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
|
|
|
@ -17,6 +17,8 @@ def get_matrix_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
2
pgp.py
2
pgp.py
|
@ -39,6 +39,8 @@ def get_email_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
|
@ -2265,6 +2265,8 @@ def actor_attached_shares(actor_json: {}) -> []:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return []
|
return []
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return []
|
||||||
|
|
||||||
attached_shares = []
|
attached_shares = []
|
||||||
for attach_item in actor_json['attachment']:
|
for attach_item in actor_json['attachment']:
|
||||||
|
|
2
ssb.py
2
ssb.py
|
@ -17,6 +17,8 @@ def get_ssb_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
2
tox.py
2
tox.py
|
@ -17,6 +17,8 @@ def get_tox_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
2
xmpp.py
2
xmpp.py
|
@ -17,6 +17,8 @@ def get_xmpp_address(actor_json: {}) -> str:
|
||||||
"""
|
"""
|
||||||
if not actor_json.get('attachment'):
|
if not actor_json.get('attachment'):
|
||||||
return ''
|
return ''
|
||||||
|
if not isinstance(actor_json['attachment'], list):
|
||||||
|
return ''
|
||||||
for property_value in actor_json['attachment']:
|
for property_value in actor_json['attachment']:
|
||||||
name_value = None
|
name_value = None
|
||||||
if property_value.get('name'):
|
if property_value.get('name'):
|
||||||
|
|
Loading…
Reference in New Issue