From 2871080e906fac9dfebedc4b5a35ba3d00249c74 Mon Sep 17 00:00:00 2001 From: jreadey Date: Fri, 29 Mar 2024 06:06:53 -0700 Subject: [PATCH] fix retries option for hsload --- h5pyd/_apps/hsload.py | 2 +- h5pyd/_hl/files.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/h5pyd/_apps/hsload.py b/h5pyd/_apps/hsload.py index c0dae7c..8fb72ee 100755 --- a/h5pyd/_apps/hsload.py +++ b/h5pyd/_apps/hsload.py @@ -233,7 +233,7 @@ def main(): "endpoint": cfg["hs_endpoint"], "bucket": cfg["hs_bucket"], "mode": mode, - "retries": cfg["retries"], + "retries": int(cfg["retries"]), } fout = h5pyd.File(tgt, **kwargs) diff --git a/h5pyd/_hl/files.py b/h5pyd/_hl/files.py index 06ae737..ee8dbf2 100644 --- a/h5pyd/_hl/files.py +++ b/h5pyd/_hl/files.py @@ -215,7 +215,7 @@ def __init__( # remove the trailing slash on endpoint if it exists if endpoint.endswith('/'): endpoint = endpoint.strip('/') - + if username is None: if "H5SERV_USERNAME" in os.environ: username = os.environ["H5SERV_USERNAME"]