Skip to content

Commit

Permalink
Merge pull request #102 from dod-advana/bugfix/raise-exception
Browse files Browse the repository at this point in the history
raise exception instead of string
  • Loading branch information
rha930 authored Feb 24, 2022
2 parents 1c22cbe + 2057810 commit 53ebf09
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gamechangerml/api/utils/pathselect.py
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ def get_model_paths():
Config.LOCAL_PACKAGED_MODELS_DIR, topic_model_dirs[0]
)
else:
raise f"No topic_model_<date> folders in {Config.LOCAL_PACKAGED_MODELS_DIR}"
raise ValueError(f"No topic_model_<date> folders in {Config.LOCAL_PACKAGED_MODELS_DIR}")

except Exception as e:
logger.error(e)
Expand Down

0 comments on commit 53ebf09

Please sign in to comment.