From 1409b79ab5472d1d50212bf63a65d0d9b7b08948 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Gina=20H=C3=A4u=C3=9Fge?= Date: Tue, 14 Jul 2015 11:56:15 +0200 Subject: [PATCH] Path testing shall only continue if path is not None --- src/octoprint/server/api/__init__.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/octoprint/server/api/__init__.py b/src/octoprint/server/api/__init__.py index 82d5d0f4..dc4a1661 100644 --- a/src/octoprint/server/api/__init__.py +++ b/src/octoprint/server/api/__init__.py @@ -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 = []