Skip to content

Commit

Permalink
Remove mountpoint directory check.
Browse files Browse the repository at this point in the history
  • Loading branch information
agibbons27 committed May 29, 2024
1 parent 2c7be8f commit b802eeb
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 4 deletions.
1 change: 1 addition & 0 deletions docker/thumbtack/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.whl
4 changes: 0 additions & 4 deletions src/thumbtack/views.py
Original file line number Diff line number Diff line change
Expand Up @@ -114,10 +114,6 @@ def add_mountpoint_form():
if mountpoint_path is None or mountpoint_path == "":
status = "No mountpoint provided."
return render_template("form_complete.html", status=status)
if not os.path.isdir(mountpoint_path):
status = f"Could not find {mountpoint_path}. Ensure the mountpoint exists before adding it to thumbtack."
return render_template("form_complete.html", status=status)

if operation == "add_mountpoint":
mounted_disk = add_mountpoint(rel_path, mountpoint_path)
if mounted_disk:
Expand Down

0 comments on commit b802eeb

Please sign in to comment.