Skip to content

Commit

Permalink
Add missing encryption key warning
Browse files Browse the repository at this point in the history
  • Loading branch information
romainsacchi committed Sep 12, 2023
1 parent 7097278 commit 131db41
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions premise/ecoinvent_modification.py
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,10 @@ def check_scenarios(scenario: dict, key: bytes) -> dict:
scenario["filepath"] = check_filepath(filepath)
else:
scenario["filepath"] = DATA_DIR / "iam_output_files"
if key is None:
raise ValueError(
"You need to provide the encryption key to decrypt the IAM output files provided by `premise`."
)

scenario["model"] = check_model_name(scenario["model"])
scenario["pathway"] = check_pathway_name(
Expand Down

0 comments on commit 131db41

Please sign in to comment.