[ create a new paste ] login | about

Link: http://codepad.org/MjNE8khl    [ raw code | fork ]

Python, pasted on May 22:
1
2
3
4
5
6
7
8
try:
    instructor = User.objects.get(email = i)
except Exception as e:
    if repr(e).startswith("DoesNotExist("):
        print >> sys.stderr, "createClass:", i, " does not exist."
        return False
    else:
        raise


Create a new paste based on this one


Comments: