Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Allow for
	signal-cli-data["profileStore"]["profiles"][<item>]["profile"] == null
in signal-cli v0.6.12 data file.
  • Loading branch information
exquo committed Dec 11, 2020
1 parent 63a54f0 commit 5fbfbc0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scli
Original file line number Diff line number Diff line change
Expand Up @@ -1097,7 +1097,7 @@ class Signal:
profiles_map = {p['name']: p for p in profiles}
contact_id = hash_contact(contact)
return profiles_map[contact_id]['profile']['name']
except KeyError:
except (KeyError, TypeError):
return None


Expand Down

0 comments on commit 5fbfbc0

Please sign in to comment.