diff options
author | Martin Green <martin.speleo@gmail.com> | 2022-06-25 16:08:19 +0100 |
---|---|---|
committer | Martin Green <martin.speleo@gmail.com> | 2022-06-25 16:08:19 +0100 |
commit | 74a5125cf92775a5d3b1e306fa905571bbf794f2 (patch) | |
tree | 691597a77891ff5c9ed0543400a021927d2fc36c | |
parent | d607b30953a7b08ea3573067b46956ae5200181f (diff) | |
download | troggle-74a5125cf92775a5d3b1e306fa905571bbf794f2.tar.gz troggle-74a5125cf92775a5d3b1e306fa905571bbf794f2.tar.bz2 troggle-74a5125cf92775a5d3b1e306fa905571bbf794f2.zip |
Allow for PosixPaths to work with GetListDir
-rw-r--r-- | core/utils.py | 2 |
1 files changed, 1 insertions, 1 deletions
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) |