Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

PREOPS-4779: bug fix - make sim_archive be robust toward presence of absence of trailing / #25

Merged
merged 1 commit into from
Jan 19, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion rubin_scheduler/sim_archive/sim_archive.py
Original file line number Diff line number Diff line change
Expand Up @@ -259,7 +259,8 @@
if base_dir == insert_date_rpath:
for found_dir in found_dirs:
try:
found_ids.append(int(found_dir[:-1]))
found_dir_index = found_dir[:-1] if found_dir.endswith("/") else found_dir
found_ids.append(int(found_dir_index))

Check warning on line 263 in rubin_scheduler/sim_archive/sim_archive.py

View check run for this annotation

Codecov / codecov/patch

rubin_scheduler/sim_archive/sim_archive.py#L262-L263

Added lines #L262 - L263 were not covered by tests
except ValueError:
pass

Expand Down
Loading