Skip to content

Commit

Permalink
Raise error w/ unexpected fug setting
Browse files Browse the repository at this point in the history
  • Loading branch information
jtlangevin committed Nov 5, 2024
1 parent bfafaf3 commit 825e493
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions scout/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -382,6 +382,11 @@ def __init__(self, handyvars, **kwargs):
# Methane and refrigerants
elif self.usr_opts["fugitive_emissions"][0] == '3':
self.fug_e = ["methane", "refrigerants"]
# Raise error for unexpected setting
else:
raise ValueError(
"Unexpected settings for 'fugitive_emissions' under 'usr_opts' "
"attribute for measure '" + self.name + "'")
else:
self.fug_e = ""
except (AttributeError, KeyError):
Expand Down

0 comments on commit 825e493

Please sign in to comment.