Add missing template for uploading logs
Change template model to use a try block instead of a conditional