This error is semantically a bit odd, particularly the way it is used right now. In the thumbnail case, the uuid function could return None (which is semantically appropriate), and the thumbnail function could check for None instead of doing try/catch. That leaves only the searchable text case, so I think it would make sense to call this NoSearchableTextException.