id,summary,reporter,owner,description,type,status,component,version,severity,resolution,keywords,cc,stage,has_patch,needs_docs,needs_tests,needs_better_patch,easy,ui_ux 7249,Better code for 7535 fix,leotr,nobody," {{{ - users = list(User.objects.filter(email=username)) - if len(users) == 1: - user = users[0] - else: - # Either we cannot find the user, or if more than 1 - # we cannot guess which user is the correct one. - raise User.DoesNotExist() }}} I think that mine is more elegant. Just add {{{ AssertionError }}} to exception list. ",,closed,contrib.admin,dev,,invalid,,,Design decision needed,1,0,0,0,0,0