We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents f8aced6 + 27abfe2 commit 9546535Copy full SHA for 9546535
tensorlayer/db.py
@@ -7,8 +7,12 @@
7
import uuid
8
from datetime import datetime
9
10
-import gridfs
11
-from pymongo import MongoClient
+try:
+ import gridfs
12
+ from pymongo import MongoClient
13
+except ImportError:
14
+ install_instr = "Please make sure you install PyMongo with the command: pip install pymongo."
15
+ raise ImportError("__init__.py : Could not import PyMongo." + install_instr)
16
17
18
def AutoFill(func):
0 commit comments