moved definition of exception to separate folder
This commit is contained in:
@@ -3,7 +3,6 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from .classes.dataset import Dataset
|
from .classes.dataset import Dataset
|
||||||
from .classes.exceptions import NoDocumentFoundException
|
|
||||||
from .classes.visual_communication import VisualCommunication
|
from .classes.visual_communication import VisualCommunication
|
||||||
from .utils.connect_mongodb import connect_mongodb
|
from .utils.connect_mongodb import connect_mongodb
|
||||||
from .utils.count_documents import count_documents
|
from .utils.count_documents import count_documents
|
||||||
|
|||||||
@@ -3,5 +3,4 @@
|
|||||||
from __future__ import annotations
|
from __future__ import annotations
|
||||||
|
|
||||||
from .dataset import Dataset
|
from .dataset import Dataset
|
||||||
from .exceptions import NoDocumentFoundException
|
|
||||||
from .visual_communication import VisualCommunication
|
from .visual_communication import VisualCommunication
|
||||||
|
|||||||
@@ -0,0 +1 @@
|
|||||||
|
from .no_document_found import NoDocumentFoundException
|
||||||
-2
@@ -1,7 +1,5 @@
|
|||||||
"""Definition of database exception."""
|
"""Definition of database exception."""
|
||||||
|
|
||||||
from __future__ import annotations
|
|
||||||
|
|
||||||
|
|
||||||
class NoDocumentFoundException(Exception):
|
class NoDocumentFoundException(Exception):
|
||||||
"""Database exception for when no documents are found."""
|
"""Database exception for when no documents are found."""
|
||||||
@@ -6,7 +6,8 @@ import logging
|
|||||||
|
|
||||||
from pymongo.collection import Collection
|
from pymongo.collection import Collection
|
||||||
|
|
||||||
from shared.mongodb import NoDocumentFoundException, VisualCommunication
|
from shared.mongodb import VisualCommunication
|
||||||
|
from shared.mongodb.exceptions import NoDocumentFoundException
|
||||||
|
|
||||||
|
|
||||||
def get_visual_communication(
|
def get_visual_communication(
|
||||||
|
|||||||
Reference in New Issue
Block a user