We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 4c1e1e5 commit f57c92dCopy full SHA for f57c92d
examples/log-artifacts-minio/Dockerfile
@@ -1,4 +1,4 @@
1
-FROM python:3.7.0
+FROM python:3.8.15
2
3
RUN mkdir /mlflow/
4
RUN mkdir -p /mlflow/fileStore
examples/log-artifacts-minio/run.py
@@ -5,7 +5,7 @@
5
6
import mlflow
7
from minio import Minio
8
-from minio.error import BucketAlreadyOwnedByYou
+from minio.error import S3Error
9
10
os.environ.update(
11
{
@@ -25,8 +25,11 @@
25
26
try:
27
minioClient.make_bucket("mlflow")
28
-except BucketAlreadyOwnedByYou as err:
29
- print(err)
+except S3Error as err:
+ if err.code == "BucketAlreadyOwnedByYou":
30
+ pass
31
+ else:
32
+ raise
33
34
policy = {
35
"Statement": [
@@ -72,3 +75,5 @@
72
75
73
76
# Log some directories too
74
77
mlflow.log_artifacts("files/")
78
+
79
+print("DONE")
0 commit comments