Skip to content

Commit

Permalink
Don't try/catch pymongo import
Browse files Browse the repository at this point in the history
pymongo is not an optional dependency
  • Loading branch information
lafrech committed Apr 24, 2020
1 parent b365ece commit f2752e9
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions umongo/frameworks/__init__.py
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@

from ..exceptions import NoCompatibleBuilderError
from ..instance import LazyLoaderInstance
from .pymongo import PyMongoBuilder


__all__ = (
Expand Down Expand Up @@ -101,11 +102,7 @@ def __init__(self, *args, **kwargs):


# try to load all the builders by default
try:
from .pymongo import PyMongoBuilder
register_builder(PyMongoBuilder)
except ImportError: # pragma: no cover
pass
register_builder(PyMongoBuilder)
try:
from .txmongo import TxMongoBuilder
register_builder(TxMongoBuilder)
Expand Down

0 comments on commit f2752e9

Please sign in to comment.