diff --git a/oml/changelog.py b/oml/changelog.py index 15c185b..06b2a90 100644 --- a/oml/changelog.py +++ b/oml/changelog.py @@ -423,7 +423,7 @@ class Changelog(db.Model): if len(peer_id) == 16: peer = User.get(peer_id) if peer: - username = peer.json()['username'] + username = peer.json().get('username', 'anonymous') action[peer_id] = [revision, timestamp, username] if peer_id in changes.get('removepeer', []): del changes['removepeer'][peer_id]