Skip to content

Commit

Permalink
Fix exclusion logic.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdice committed Aug 29, 2024
1 parent 171644a commit a27c3fc
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions ci/check_conda_nightly_env.py
Original file line number Diff line number Diff line change
Expand Up @@ -97,9 +97,7 @@ def check_env(json_path):
old_packages = {
package: date
for package, date in rapids_package_dates.items()
if package not in EXCLUDED_PACKAGES
and date is not None
and date < old_threshold
if date is not None and date < old_threshold
}
if old_packages:
exit_code = 1
Expand All @@ -114,7 +112,9 @@ def check_env(json_path):

# If there are undated packages, show an error
undated_packages = {
package: date for package, date in rapids_package_dates.items() if date is None
package: date
for package, date in rapids_package_dates.items()
if package not in EXCLUDED_PACKAGES and date is None
}
if undated_packages:
exit_code = 1
Expand Down

0 comments on commit a27c3fc

Please sign in to comment.