Commits

Christian Scholz  committed 7f42505

catching pymongo import now to make it possible to use it without pymongo installed

  • Participants
  • Parent commits e27bd9e

Comments (0)

Files changed (1)

File quantumcore/storages/__init__.py

 from attributemapper import AttributeMapper
 from extendedfilestore import ExtendedFileStore, File
 from memorymappingstore import MemoryMappingStore
-from mongomappingstore import MongoMappingStore
-from mongoobjectstore import MongoObjectStore, Model
+try:
+    from mongomappingstore import MongoMappingStore
+    from mongoobjectstore import MongoObjectStore, Model
+except ImportError:
+    pass