learning-unlimited/ESP-Website — comment on commit 5e40a31a7502caef1c20235f2eaf94e1e33c368d
File: esp/esp/qsd/seltests.py line 40
By gkanwar:

Looks like the DatabaseError just occurs after the IntegrityError because in the case of get_or_create() it tries to rollback the action, and then fails. So in both cases it's an IntegrityError.