Skip to content
This repository has been archived by the owner on Nov 3, 2023. It is now read-only.

Check chat data folder validity #3386

Merged
merged 4 commits into from
Jan 15, 2021
Merged

Conversation

EricMichaelSmith
Copy link
Contributor

@EricMichaelSmith EricMichaelSmith commented Jan 15, 2021

Patch description
Ensure that a ~ doesn't exist in the model chat chat_data_folder param, because it currently can't be parsed

Testing steps
Existing CI checks

Copy link
Contributor

@klshuster klshuster left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

thanks for the quick fix!

@@ -188,6 +188,15 @@ def assert_task_args(
full_path
), f"Target left pane text path {full_path} doesn't exist"

if args.blueprint.get("chat_data_folder") == '':
raise ValueError('Must provide a valid chat data folder')
else:
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

you probably dont need the else here

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fair - changed

@EricMichaelSmith EricMichaelSmith merged commit 8408431 into master Jan 15, 2021
@EricMichaelSmith EricMichaelSmith deleted the model-chat-data-folder-fix branch January 15, 2021 22:45
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants