Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Non-existent context settings file should be gracefully handled #1897

Closed
Tracked by #1709
jemrobinson opened this issue May 17, 2024 · 1 comment · Fixed by #1916
Closed
Tracked by #1709

Non-existent context settings file should be gracefully handled #1897

jemrobinson opened this issue May 17, 2024 · 1 comment · Fixed by #1916
Assignees
Labels
bug Problem when deploying a Data Safe Haven. good first issue This is a good issue for newcomers to the project to tackle

Comments

@jemrobinson
Copy link
Member

jemrobinson commented May 17, 2024

dsh context available
2024-01-23 14:23:46 [    INFO] Reading project settings from '/Users/jrobinson/Library/Application Support/data_safe_haven/contexts.yaml'.                                                                                                             context_settings.py:208
2024-01-23 14:23:46 [   ERROR] Could not find file /Users/jrobinson/Library/Application Support/data_safe_haven/contexts.yaml.                                                                                                                                       cli.py:98
2024-01-23 14:23:46 [   ERROR] [Errno 2] No such file or directory: '/Users/jrobinson/Library/Application Support/data_safe_haven/contexts.yaml'

This exception should be caught and a more helpful error message shown, that tells the user what to do.

@jemrobinson jemrobinson mentioned this issue May 17, 2024
10 tasks
@jemrobinson jemrobinson added this to the Release 5.0.0rc2 milestone May 17, 2024
@JimMadge
Copy link
Member

Should catch that exception in commands/context.py

@JimMadge JimMadge added bug Problem when deploying a Data Safe Haven. good first issue This is a good issue for newcomers to the project to tackle labels May 17, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Problem when deploying a Data Safe Haven. good first issue This is a good issue for newcomers to the project to tackle
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants