e // # The post might be deleted while it's uploading. Check the post status after // # an error. // self.reload // raise if self.status != "deleted" // return; } // # This might take a while. Rather than hold a transaction, just reload the post // # after uploading. // self.reload // self.updateAttributes('is_warehoused' => true) // } }