From 74a5125cf92775a5d3b1e306fa905571bbf794f2 Mon Sep 17 00:00:00 2001 From: Martin Green Date: Sat, 25 Jun 2022 16:08:19 +0100 Subject: [PATCH] Allow for PosixPaths to work with GetListDir --- core/utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/core/utils.py b/core/utils.py index 8cbbda2..4d0de2f 100644 --- a/core/utils.py +++ b/core/utils.py @@ -66,7 +66,7 @@ def chaosmonkey(n): # handles url or file, so we can refer to a set of scans (not drawings) on another server def GetListDir(sdir): res = [ ] - if sdir[:7] == "http://": + if type(sdir) is str and sdir[:7] == "http://": # s = urllib.request.urlopen(sdir) message = f"! Requesting loading from http:// NOT IMPLEMENTED. [{sdir}]" print(message)