Skip to content

Commit

Permalink
testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom Tunberg committed Aug 25, 2024
1 parent 05c84c3 commit 6d39a4e
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion bin/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,12 @@ def load_environment_variables():
envs = {}
for var_name, input_name in env_var_names.items():
envs[var_name] = os.environ.get(input_name)
if not envs[var_name] and var_name not in ["input_file", "input_md_directory", "exclude_files"]:
print(f"{var_name}")
if not envs[var_name] and var_name not in [
"input_file",
"input_md_directory",
"exclude_files"
]:
print(f"Missing value for {var_name}")
sys.exit(1)

Expand Down Expand Up @@ -240,6 +245,7 @@ def main():
Main function that orchestrates it all
"""
envs = load_environment_variables()
print(envs)
links = []
if "input_file" in envs:
# Process a single file
Expand Down

0 comments on commit 6d39a4e

Please sign in to comment.