1
0
Fork 0
mirror of https://github.com/yweber/lodel2.git synced 2025-10-21 16:49:02 +02:00

[#54] Deleted the use of an obsolete exception

This commit is contained in:
Roland Haroutiounian 2015-09-24 16:45:59 +02:00
commit 4b42aaf282

View file

@ -9,7 +9,6 @@ from unittest import TestCase
import unittest
from django.conf import settings
from EditorialModel.components import EmComponentNotExistError
from EditorialModel.classes import EmClass
from EditorialModel.classtypes import EmClassType
from EditorialModel.fieldgroups import EmFieldGroup
@ -104,7 +103,7 @@ class TestEmClassDeletion(ClassesTestCase):
try:
EM_TEST_OBJECT.component(test_class.uid)
except EmComponentNotExistError:
except Exception:
self.fail("The class has been deleted but it has fieldgroups")