Skip to content

Commit

Permalink
Revert changes to in order to keep the PR small in scope
Browse files Browse the repository at this point in the history
  • Loading branch information
beeankha committed Jul 11, 2024
1 parent 46701d1 commit de4c1ed
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions conda_build/features.py
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
# Copyright (C) 2014 Anaconda, Inc
# SPDX-License-Identifier: BSD-3-Clause
import os

from .exceptions import CondaBuildUserError
import sys

env_vars = [
"FEATURE_DEBUG",
Expand All @@ -16,7 +15,7 @@
for key, value in os.environ.items():
if key in env_vars:
if value not in ("0", "1"):
raise CondaBuildUserError(
sys.exit(
f"Error: did not expect environment variable '{key}' "
f"being set to '{value}' (not '0' or '1')"
)
Expand Down

0 comments on commit de4c1ed

Please sign in to comment.