Commit 3ac1fd52 authored by Philipp Hörist's avatar Philipp Hörist

Profile: Correctly handle not existing vcard

parent 97c157b1
Pipeline #7111 passed with stages
in 6 minutes and 46 seconds
......@@ -140,6 +140,9 @@ def _on_vcard_received(self, task):
log.info('Error loading VCard: %s', error)
self._current_vcard = VCard()
if self._current_vcard is None:
self._current_vcard = VCard()
self._load_avatar()
self._vcard_grid.set_vcard(self._current_vcard.copy())
self._ui.profile_stack.set_visible_child_name('profile')
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment