Skip to content

Commit bff5923

Browse files
committed
Fix brackets
1 parent dae040a commit bff5923

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

python-packages/input4MIPs-CVs/src/input4MIPs_CVs/cli/update-esgf-scrape.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ def fix_timestamp(v: str | list | None) -> str | None:
157157

158158
for k in res:
159159
if "_timestamp" in res[k] and isinstance(res[k]["_timestamp"], list):
160-
if len(res[k]["_timestamp"] != 1):
160+
if len(res[k]["_timestamp"]) != 1:
161161
msg = f"Unexpected value for {source_id=} for {source_id['_timestamp']}"
162162
raise AssertionError(msg)
163163

0 commit comments

Comments
 (0)