From 5f4207d9761e9015560b1ce5a2b1af5290d7608c Mon Sep 17 00:00:00 2001 From: endorphant Date: Sun, 25 Feb 2018 16:26:58 -0500 Subject: [PATCH] swatting another listdir --- ttbp/core.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/ttbp/core.py b/ttbp/core.py index 381d726..3c358c0 100644 --- a/ttbp/core.py +++ b/ttbp/core.py @@ -405,7 +405,10 @@ def www_neighbors(): url = config.LIVE+user+"/"+userRC["publish dir"] lastfile = "" - files = os.listdir(os.path.join("/home", user, ".ttbp", "entries")) + try: + files = os.listdir(os.path.join("/home", user, ".ttbp", "entries")) + except OSError: + files = [] files.sort() for filename in files: if valid(filename):