core: presence status + last resource refactored and kept in entitiesCache in memory.py, profile cache is purged on disconnection

This commit is contained in:
Goffi 2012-08-15 15:50:46 +02:00
commit 8f622601c6

View file

@ -92,7 +92,7 @@ class XEP_0277():
microblog_data['author'] = _entry.authors[0].name.text
microblog_data['timestamp'] = str(int(_entry.updated.tf))
microblog_data['id'] = item['id']
except AttributeError, KeyError:
except (AttributeError, KeyError):
error(_('Error while parsing atom entry for microblogging event'))
return {}