aboutsummaryrefslogtreecommitdiffstats
path: root/libmproxy/proxy.py
diff options
context:
space:
mode:
Diffstat (limited to 'libmproxy/proxy.py')
-rw-r--r--libmproxy/proxy.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/libmproxy/proxy.py b/libmproxy/proxy.py
index d1596b0a..7b6e695f 100644
--- a/libmproxy/proxy.py
+++ b/libmproxy/proxy.py
@@ -445,8 +445,11 @@ class ProxyServer(ServerBase):
self.RequestHandlerClass(self.config, request, client_address, self, self.masterq)
def shutdown(self):
- shutil.rmtree(self.certdir)
ServerBase.shutdown(self)
+ try:
+ shutil.rmtree(self.certdir)
+ except OSError:
+ pass
# Command-line utils