Commit 643384a2 authored by Timothy Stack's avatar Timothy Stack

Catch and ignore OSError thrown by os.listdir() when adding dev trees

to the list of ALLOWED_PATHS.
parent f486abd8
......@@ -295,9 +295,14 @@ class MyServer(SSL.ForkingSSLServer, SimpleXMLRPCDispatcher):
self.admin = self.isadminuser(self.user)
if self.admin:
ALLOWED_PATHS.extend(map(lambda x: os.path.join(STD_DEVEL_PATH, x),
try:
ALLOWED_PATHS.extend(map(lambda x:
os.path.join(STD_DEVEL_PATH, x),
os.listdir(STD_DEVEL_PATH)))
pass
except OSError:
pass
pass
self.glist = self.getusergroups(self.user);
if len(self.glist) == 0:
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment