Thanks to visit codestin.com Credit goes to github.com
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.
1 parent 3360752 commit 78a32b4Copy full SHA for 78a32b4
ndb/google_imports.py
@@ -53,9 +53,14 @@ def set_appengine_imports():
53
normal_environment = False
54
except ImportError:
55
# If we are running locally but outside the context of App Engine.
56
- set_appengine_imports()
57
- from google.appengine.datastore import entity_pb
58
- normal_environment = True
+ try:
+ set_appengine_imports()
+ from google.appengine.datastore import entity_pb
59
+ normal_environment = True
60
+ except ImportError:
61
+ raise ImportError('Unable to find the App Engine SDK. '
62
+ 'Did you remember to set the "GAE" environment '
63
+ 'variable to be the path to the App Engine SDK?')
64
65
if normal_environment:
66
from google.appengine.api.blobstore import blobstore as api_blobstore
0 commit comments