File tree 2 files changed +4
-4
lines changed
2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -5,11 +5,11 @@ FROM gcr.io/google_appengine/python
5
5
6
6
# Create a virtualenv for dependencies. This isolates these packages from
7
7
# system-level packages.
8
- RUN virtualenv /env
8
+ RUN virtualenv -p python3.6 /env
9
9
10
10
# Setting these environment variables are the same as running
11
11
# source /env/bin/activate.
12
- ENV VIRTUAL_ENV -p python3.5 /env
12
+ ENV VIRTUAL_ENV /env
13
13
ENV PATH /env/bin:$PATH
14
14
15
15
ADD . /bookstore/
Original file line number Diff line number Diff line change 14
14
15
15
from contextlib import contextmanager
16
16
17
- import status
17
+ import grpc
18
18
19
19
20
20
@contextmanager
@@ -23,6 +23,6 @@ def context(grpc_context):
23
23
try :
24
24
yield
25
25
except KeyError as key_error :
26
- grpc_context .code (status . Code .NOT_FOUND )
26
+ grpc_context .code (grpc . StatusCode .NOT_FOUND )
27
27
grpc_context .details (
28
28
'Unable to find the item keyed by {}' .format (key_error ))
You can’t perform that action at this time.
0 commit comments