Log an exception before swallowing it in a KeyValueMultiSaveError

This commit is contained in:
Calen Pennington
2015-06-11 16:37:56 -04:00
parent 0f6ef44476
commit b9f5eef4ae

View File

@@ -419,6 +419,7 @@ class UserStateCache(object):
pending_updates
)
except DatabaseError:
log.exception("Saving user state failed for %s", self.user.username)
raise KeyValueMultiSaveError([])
finally:
self._cache.update(pending_updates)