I think it would -- I basically just copied and pasted and modified code from a function that Doug had written.  We can eliminate the try/excepts in another pull request if we'd like (would you like to create an issue for this?)  It's probably a good idea to review all try/excepts in the web app code base, while we're at it.