We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 44590ab commit de6c4ccCopy full SHA for de6c4cc
ad.py
@@ -103,7 +103,11 @@ def run_ad(args):
103
104
def get_model_definition(model_key):
105
"""Get the model definition from the file that contains it."""
106
- return Path(f"models/{model_key}.jl").read_text().strip()
+ try:
107
+ return Path(f"models/{model_key}.jl").read_text().strip()
108
+ except FileNotFoundError:
109
+ return (f"Model definition not found for `{model_key}`;
110
+ f" if you see this error, please open an issue.")
111
112
113
def html(_args):
0 commit comments