aboutsummaryrefslogtreecommitdiffstats
path: root/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py
diff options
context:
space:
mode:
Diffstat (limited to 'vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py')
-rwxr-xr-xvnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py
index c5198471..91207640 100755
--- a/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py
+++ b/vnfs/DAaaS/sample-apps/sample-minio-save-model/build/save-model-to-minio.py
@@ -49,7 +49,7 @@ if __name__ == "__main__":
found = False
try:
- client.stat_object(bucket_name, model);
+ client.stat_object(bucket_name, model)
found = True
except Exception as err:
found = False
@@ -62,5 +62,5 @@ if __name__ == "__main__":
if not found:
try:
client.fput_object(bucket_name, model, filepath, metadata=metadata)
- except expression as identifier:
+ except Exception as identifier:
print(err)