We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 965e17d commit 6115e68Copy full SHA for 6115e68
2 files changed
release/docker/Dockerfile
@@ -86,4 +86,8 @@ RUN export PIP_BREAK_SYSTEM_PACKAGES=1 PIP_ROOT_USER_ACTION=ignore && \
86
# Clean up before finishing.
87
RUN apt-get clean
88
89
+# Create a non-root user and switch to it.
90
+RUN useradd -m -s /bin/bash tfq-user
91
+USER tfq-user
92
+
93
CMD ["/bin/bash"]
tensorflow_quantum/core/ops/load_module.py
@@ -47,7 +47,7 @@ def _load(self):
47
try:
48
path = resource_loader.get_path_to_datafile(self._name)
49
self._module = load_library.load_op_library(path)
50
- except:
+ except Exception:
51
path = os.path.join(get_python_lib(),
52
"tensorflow_quantum/core/ops", self._name)
53
0 commit comments