aboutsummaryrefslogtreecommitdiffstats
path: root/libbe/storage/vcs/base.py
diff options
context:
space:
mode:
authorW. Trevor King <wking@drexel.edu>2009-12-13 07:39:55 -0500
committerW. Trevor King <wking@drexel.edu>2009-12-13 07:39:55 -0500
commit55e0abfa27b693768f495044d10444d9d92e4fca (patch)
treef7d5f1b3efb28ea4dbd8fe37a1a083c44b0562f8 /libbe/storage/vcs/base.py
parent85aa14161c125f996f0d146b93f9cb06a0b3928f (diff)
downloadbugseverywhere-55e0abfa27b693768f495044d10444d9d92e4fca.tar.gz
More fixes for libbe.storage.vcs.hg + .git transition.
Diffstat (limited to 'libbe/storage/vcs/base.py')
-rw-r--r--libbe/storage/vcs/base.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/libbe/storage/vcs/base.py b/libbe/storage/vcs/base.py
index 5d7be7d..5308813 100644
--- a/libbe/storage/vcs/base.py
+++ b/libbe/storage/vcs/base.py
@@ -621,7 +621,8 @@ os.listdir(self.get_path("bugs")):
def _destroy(self):
self._vcs_destroy()
self._cached_path_id.destroy()
- shutil.rmtree(self.be_dir)
+ if os.path.exists(self.be_dir):
+ shutil.rmtree(self.be_dir)
def _connect(self):
self.root()