Skip to content
Snippets Groups Projects
Commit b06c56a3 authored by Yann Leboulanger's avatar Yann Leboulanger
Browse files

prevent a traceback when saving vcard on HD.

parent 8eb1c7ce
No related branches found
No related tags found
No related merge requests found
......@@ -820,6 +820,8 @@ class ConnectionVcard:
puny_jid = helpers.sanitize_filename(jid)
path = os.path.join(gajim.VCARD_PATH, puny_jid)
if jid in self.room_jids or os.path.isdir(path):
if not nick:
return
# remove room_jid file if needed
if os.path.isfile(path):
os.remove(path)
......
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