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:
parent
896c7821ce
commit
4b42aaf282
1 changed files with 1 additions and 2 deletions
|
@ -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")
|
||||
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue