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"]