Path testing shall only continue if path is not None
This commit is contained in:
parent
d0733d8769
commit
1409b79ab5
1 changed files with 3 additions and 0 deletions
|
|
@ -245,6 +245,9 @@ def utilTestPath():
|
|||
from octoprint.util.paths import normalize
|
||||
|
||||
path = normalize(data["path"])
|
||||
if not path:
|
||||
return jsonify(path=path, exists=False, typeok=False, access=False, result=False)
|
||||
|
||||
check_type = None
|
||||
check_access = []
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue