From 74a54ec33711b18d70fbc508187d29e01d16025a Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Wed, 29 Aug 2012 09:41:03 +0800 Subject: [PATCH] Remove did not delete the symlink --- lib/workplace.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/workplace.py b/lib/workplace.py index 32221d8..6580ff8 100644 --- a/lib/workplace.py +++ b/lib/workplace.py @@ -142,11 +142,11 @@ class Workplace(object): shutil.rmtree(os.path.join(self.path, name)) # Deleting the possible symlink - link = os.path.join(C('dirs.www'), name) - if os.path.islink(link) and os.path.isdir(link): + link = os.path.join(self.www, name) + if os.path.islink(link): try: os.remove(link) - except: + except Exception as e: pass # Delete db -- 2.11.0