Skip to content
Snippets Groups Projects
Commit 68332e91 authored by Philipp Hörist's avatar Philipp Hörist
Browse files

Profile: Correctly handle not existing vcard

parent 23804ac3
No related branches found
No related tags found
No related merge requests found
...@@ -140,6 +140,9 @@ def _on_vcard_received(self, task): ...@@ -140,6 +140,9 @@ def _on_vcard_received(self, task):
log.info('Error loading VCard: %s', error) log.info('Error loading VCard: %s', error)
self._current_vcard = VCard() self._current_vcard = VCard()
if self._current_vcard is None:
self._current_vcard = VCard()
self._load_avatar() self._load_avatar()
self._vcard_grid.set_vcard(self._current_vcard.copy()) self._vcard_grid.set_vcard(self._current_vcard.copy())
self._ui.profile_stack.set_visible_child_name('profile') self._ui.profile_stack.set_visible_child_name('profile')
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment