Skip to content

Commit

Permalink
fix null ref
Browse files Browse the repository at this point in the history
  • Loading branch information
jreadey committed Dec 26, 2024
1 parent 0699a08 commit ede4621
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion h5pyd/_hl/files.py
Original file line number Diff line number Diff line change
Expand Up @@ -383,7 +383,7 @@ def __init__(
endpoint = cfg["hs_endpoint"]

# remove the trailing slash on endpoint if it exists
if endpoint.endswith('/'):
if endpoint and endpoint.endswith('/'):
endpoint = endpoint.strip('/')

if username is None:
Expand Down

0 comments on commit ede4621

Please sign in to comment.