wrap appendRevision in try-catch block