Fix redirect bug where no usb is inserted
This commit is contained in:
parent
58de141c09
commit
e0e63a747f
1 changed files with 1 additions and 1 deletions
|
|
@ -116,7 +116,7 @@ def index():
|
|||
def files(path):
|
||||
base_path = app.config["BUTTERBOX_USB_PATH"]
|
||||
if not os.path.exists(base_path):
|
||||
flash(_('No USB inserted.'))
|
||||
return redirect(url_for('index'))
|
||||
current_path = os.path.join(base_path, path)
|
||||
render_files = []
|
||||
if os.path.exists(current_path):
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue