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):