Skip to content

Commit

Permalink
addresses #16 step 5
Browse files Browse the repository at this point in the history
  • Loading branch information
Philip Colangelo committed Jan 29, 2025
1 parent b330dd7 commit 2d46474
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/digest/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -973,6 +973,9 @@ def save_reports(self):
self, "Select Directory"
)

if not save_directory:
return

# Check if the directory exists and is writable
if not os.path.exists(save_directory) or not os.access(save_directory, os.W_OK):
self.show_warning_dialog(
Expand Down
3 changes: 3 additions & 0 deletions src/digest/multi_model_analysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -225,6 +225,9 @@ def save_reports(self):
self, "Select Directory"
)

if not base_directory:
return

# Check if the directory exists and is writable
if not os.path.exists(base_directory) or not os.access(base_directory, os.W_OK):
bad_ext_dialog = StatusDialog(
Expand Down

0 comments on commit 2d46474

Please sign in to comment.